Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. for more in target: # обходим ссылки на главную
  2. page_arr = main(more)
  3. if len(page_arr):
  4.  
  5. for el in page_arr:
  6.  
  7. if el[:4] == "http" and el not in page_arr and ("mailto" or "tel:" or "http://#" or "# " or "https://") not in el:
  8. if target not in el:
  9. el = target + el
  10.  
  11. all_urls.append(el)#if el.attrs.has_key('href'):
  12. print(all_urls)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement