I have a problem in downloadig URL.
I need to download webpage with the table. When I get .html
file with the help of urllib
or urllib2
, it has some problems connected with javascript (or same languages). There's only source code such as id_name etc, but it don't have any table information (columns and rows).
Nevertheless, when I save .html
in Google Chrome, it actually has information in table (not source code, but columns and rows). So what should I do to make it in Python?
You can use selenium to simulate browser. It will execute javascript
then you can get the information you want
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.