From 08e4cb4630a01f191f29345781339a6835e53e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 28 Jun 2020 21:11:24 +0200 Subject: [PATCH] Initial version. --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..58c36c7 --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ +import httplib2 +import re +from bs4 import BeautifulSoup + +if __name__ == '__main__': + h = httplib2.Http('.cache') + site = 'https://realpornclip.com/wp-content/uploads/2020/06/' + response, content = h.request(site) + s = BeautifulSoup(content) + """find only file names""" + links = s.find_all(href=re.compile('\..*$')) + for link in links: + print(site + link['href'])