Open ivywze opened 5 years ago
can you print the “loadMoreButton”? See if the element is correctly located and selected.
more details helps, eg the content of the element, its location, etc. Also, try the find elements (plural) version of the methods to see if more elements matched the CSS selector. Sometimes, you matched more. So the script clicked some other elements.
can you print the “loadMoreButton”? See if the element is correctly located and selected.
It yields invalid selector: Compound class names not permitted
, I follow the trick here solved this problem.
But another error occured NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10d9766a0>: Failed to establish a new connection: [Errno 61] Connection refused'
.
I am wondering, instead of trying to click the button, is there other way to go to next page?
You can also try to to conduct network trace analysis —- some cases in our “advanced scraping” chapter, the open book
@ivyWANG958 , this is the section on network trace analysis: https://github.com/hupili/python-for-data-and-media-communication-gitbook/blob/master/notes-week-08.md#analyse-network-traces
Troubleshooting
Describe your environment
Describe your question
Cannot jump to the next page in centaline property, attached with the pageing source.
Describe the efforts you have spent on this issue
The URL of different pages doesn't change, also I tried to treat the '下一頁' as a button and try to click but failed.
click as a button
python: