Spaces:
Paused
Paused
Update filmpertutti.py
Browse files- filmpertutti.py +5 -0
filmpertutti.py
CHANGED
|
@@ -8,6 +8,7 @@ from datetime import datetime
|
|
| 8 |
import dateparser
|
| 9 |
import os
|
| 10 |
import cloudscraper
|
|
|
|
| 11 |
|
| 12 |
TMDB_KEY = os.getenv('TMDB_KEY')
|
| 13 |
DOMAIN = os.getenv('DOMAIN')
|
|
@@ -81,6 +82,10 @@ def search(query,date):
|
|
| 81 |
response= scraper.get(query)
|
| 82 |
print(response.text)
|
| 83 |
print("HERE IT ENDS RESPONSE")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 85 |
test= soup.find('div', class_='elementor-posts-container elementor-posts elementor-posts--skin-classic elementor-grid')
|
| 86 |
# Find all articles
|
|
|
|
| 8 |
import dateparser
|
| 9 |
import os
|
| 10 |
import cloudscraper
|
| 11 |
+
import httpx
|
| 12 |
|
| 13 |
TMDB_KEY = os.getenv('TMDB_KEY')
|
| 14 |
DOMAIN = os.getenv('DOMAIN')
|
|
|
|
| 82 |
response= scraper.get(query)
|
| 83 |
print(response.text)
|
| 84 |
print("HERE IT ENDS RESPONSE")
|
| 85 |
+
response = httpx.get(query)
|
| 86 |
+
print("ANOTHER RESPONSE")
|
| 87 |
+
print(response.text)
|
| 88 |
+
print("HERE IT ENDS AGAIN")
|
| 89 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 90 |
test= soup.find('div', class_='elementor-posts-container elementor-posts elementor-posts--skin-classic elementor-grid')
|
| 91 |
# Find all articles
|