Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. for link in soup.find_all('a'):
  2. if link.has_attr('href'):
  3. s = link.get('href')
  4. if s.startswith('/w') and (':' not in s) and (not s.startswith('#')):
  5. b.add(s)
  6. print(len(a & b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement