Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for more in target: # обходим ссылки на главную
- page_arr = main(more)
- if len(page_arr):
- for el in page_arr:
- if el[:4] == "http" and el not in page_arr and ("mailto" or "tel:" or "http://#" or "# " or "https://") not in el:
- if target not in el:
- el = target + el
- all_urls.append(el)#if el.attrs.has_key('href'):
- print(all_urls)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement