Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- with open("il.html") as fp:
- s = BeautifulSoup(fp)
- tables = s.findChildren('table')
- tp = tables[7]
- fagtables = tp.find_all('td',{'align':'left'})
- f = []
- IL = ''
- for fag in fagtables:
- f.append(fag.text)
- for fag in f:
- IL += ('rpgcodex.net##li[data-author=\"' + fag + '\"]' + '\n')
- il_file = open("ignorelistublock.txt", "w")
- il_file.write(IL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement