- Messages
- 4,742
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Officially no, but if there's something specific you need access to I can certainly tryIs there an API for accessing forum related data
Nope, I haven't unfortunately. I didn't have time to do the actual data entry to track the old games, so I put it aside for now.Hmm. Well we'd have to see if @Ben managed to refine his project further, that might be w hat's needed?
file = open("Animals.txt","r")
data = file.read().replace("Â\xa0","")
animals = data.replace('\n','.').split(".")
phrase = "data-lb-caption-desc"
phrase2 = '<div class="bbWrapper">'
phrase3 = '<footer class="message-footer">'
text = open("Day1Page1.txt", encoding="utf8")
text1 = text.read()
temp = text1
breaks = []
posters = []
posts = []
text_break=0
while (temp.find(phrase, text_break+1) > 0):
text_break = temp.find(phrase, text_break+1)
breaks.append(text_break)
posters.append(text1[text_break+22:text_break+22+text1[text_break+22:].find(" ·")])
total = len(breaks)
for j in range(total):
if j == total-1:
temp = text1[breaks[j]:]
temp = temp[:temp.find(phrase3)]
else:
temp = text1[breaks[j]:breaks[j+1]]
temp = temp[:temp.find(phrase3)]
const=1
const2=0
word = ""
for i in temp:
if i=="<":
const = 1
if const == 0 and i=="&":
const2 = 1
if const == 0 and const2 == 0 and i !='\t':
word = word + i
if const == 0 and i==";" and const2==1:
const2 = 0
if i==">":
const=0
posts.append(word.replace('\n',' ').replace("."," ").replace("?"," ").replace(","," ").replace('"'," ").upper())
for k in range(len(posts)):
count = 0
words = posts[k].split(' ')
for l in animals:
if l.upper() in words:
count = count + 1
print(posters[k] + ": " + str(count))