Friends,
I would like to get data in a calendar:
The first step would be to have the program choose time zone (-3: 00 Buenos Aires) and click Submit Time Zone.
After clicking on Submit Time Zone, select the city (Rio de Janeiro) and click Get Calendar.
Only after these steps will I have access to the calendar effectively to think about extracting the information.
I would like to take the event of the day:
For example, today is 22, so it would print:
22 Apr 2017: Ekādaśī, K, 06:09, Śatabhiṣā
+ ŚUDDHA EKĀDAŚĪ VRATA: FASTING FOR Varūthinī EKADASI
I thought about using Python and beautifulsoap but I accepted suggestions.
Question: How to make the program reach the calendar (after making the time zone and city selection automatically)?
I could not get out of:
from bs4 import BeautifulSoup
import requests
url = 'http://www.purebhakti.com/component/panjika'
header = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/51.0.2704.103 Safari/537.36'}
req = requests.get(url,headers= header)
html = req.text
soup = BeautifulSoup(html,'html.parser')