Python webpage scraping can't find form from this page -
I want to cycle through dates at the bottom of a page that looks like a form. But this is returning to the blank space. Here's my code.
import tool URL = 'http: //www.airchina.com.cn/www/jsp/airlines_operating_data/exlshow_en.jsp' 'br = mechanize.Browser () r = br.forms ( ) In the form for br.open (url): form print form. Name Finding the name of the print form Why is not it returning in any form? Is not it a form? If not, how can I control the year and month down to cycles through pages? How does some sample code provide this?
is trying to reach the page that you are actually directed to on the error page Paste the url in the browser, and you get a page on it:
Do not comply with the inquiries data terms Any other No form
You need to access the page in a different way. I suggest taking steps to the URL directory until you find the right path.
Comments
Post a Comment