- Strona główna
- Społeczność
- Programowanie
- date filter in scraping webpage with python
Advertisement
Edit Your Comment
date filter in scraping webpage with python
Sep 10, 2023 at 06:50
Uczestnik z Aug 09, 2023
1 postów
Hi every one
How can I customize date filter in python request ( in headers , cookies , links or etc ) ?
my code is :
url='https://www.myfxbook.com/forex-economic-calendar'
response=requests.get(url,cookies={'timezone':'3','locale':'en','loggedOffCalendar':'{\"importances\":[3,2,1], \"countries\":[\"United States\",\"France\",\"Germany\",\"Spain\"], \"currencies\":[\"EUR\",\"USD\"]}'},timeout=10)
I didn't find any section in the headers in inspect and network of webpage to customize the date except this link :
'https://www.myfxbook.com/calendarEmailMinAlert.xml?min=&start=2023-04-07&end=2023-05-29&show=show&type=cal&bubble=true&calPeriod=-1&tabType=0'
But this link returns the 404 not found page ( you can try it ) .
Is there any idea to solve this problem ?
How can I customize date filter in python request ( in headers , cookies , links or etc ) ?
my code is :
url='https://www.myfxbook.com/forex-economic-calendar'
response=requests.get(url,cookies={'timezone':'3','locale':'en','loggedOffCalendar':'{\"importances\":[3,2,1], \"countries\":[\"United States\",\"France\",\"Germany\",\"Spain\"], \"currencies\":[\"EUR\",\"USD\"]}'},timeout=10)
I didn't find any section in the headers in inspect and network of webpage to customize the date except this link :
'https://www.myfxbook.com/calendarEmailMinAlert.xml?min=&start=2023-04-07&end=2023-05-29&show=show&type=cal&bubble=true&calPeriod=-1&tabType=0'
But this link returns the 404 not found page ( you can try it ) .
Is there any idea to solve this problem ?

*Komercyjne wykorzystanie i spam są nieprawidłowe i mogą spowodować zamknięcie konta.
Wskazówka: opublikowanie adresu URL obrazu / YouTube automatycznie wstawi go do twojego postu!
Wskazówka: wpisz znak@, aby automatycznie wypełnić nazwę użytkownika uczestniczącego w tej dyskusji.