Initial version.

This commit is contained in:
Lukáš Kucharczyk 2020-06-28 21:11:24 +02:00
parent 5d06b3c7a0
commit 08e4cb4630
1 changed files with 13 additions and 0 deletions

13
main.py Normal file
View File

@ -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'])