Advertisement
Guest User

Untitled

a guest
Dec 24th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2. with open("il.html") as fp:
  3.     s = BeautifulSoup(fp)
  4. tables = s.findChildren('table')
  5. tp = tables[7]
  6. fagtables = tp.find_all('td',{'align':'left'})
  7. f = []
  8. IL = ''
  9. for fag in fagtables:
  10.     f.append(fag.text)
  11. for fag in f:
  12.     IL += ('rpgcodex.net##li[data-author=\"' + fag + '\"]' + '\n')
  13.  
  14. il_file = open("ignorelistublock.txt", "w")
  15. il_file.write(IL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement