Advertisement
DeaD_EyE

get warez links from cuii.info

Mar 22nd, 2023
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.80 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. """
  3. I got the idea from here: https://www.heise.de/forum/heise-online/Kommentare/DNS-Panne-heise-de-landet-bei-1-1-im-Copyright-Filter/Re-Zum-Glueck-nur-1-1-ohne-IP-Sperren/posting-42441068/show/
  4.  
  5. It is very nice from cuii.info to provide us with the best sharing sites on the web
  6.  
  7. You should use a free non-filtering DNS-Server or better, use Unbound.
  8.  
  9. You need also requests and bs4 to run this code
  10. """
  11. import requests, bs4
  12.  
  13.  
  14. def get_illegal_urls():
  15.     doc = bs4.BeautifulSoup(
  16.         requests.get("https://cuii.info/empfehlungen/").content, "lxml"
  17.     )
  18.     return [
  19.         "http://" + element.text.split()[0].lower()
  20.         for element in doc.select("span[itemprop=text]")
  21.     ]
  22.  
  23.  
  24. print("==== Good warez sites ====")
  25. for url in get_illegal_urls():
  26.     print(url)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement