build0016

This commit is contained in:
Hell13Cat
2021-12-29 01:58:17 +03:00
parent 6d347cb1cd
commit e2021a1be2
3 changed files with 24 additions and 10 deletions
+7 -2
View File
@@ -7,8 +7,13 @@ import extf
def get_data(url):
datas = {}
scraper = cfscrape.CloudflareScraper()
req = scraper.get(url)
try:
scraper = cfscrape.CloudflareScraper()
req = scraper.get(url)
datas["code"] = 1
except:
datas["code"] = 0
return datas
soup = BeautifulSoup(req.text, 'lxml')
datas["url"] = url
datas["title"] = soup.find("title").text