Apr-14-2018, 03:32 PM
I am working up to the following code and get the page with the button. I need to click it to go next page. I prefer to use Requests or BeautifulSoup. I also tried to install mechanize failed with error "mechanize only works on python 2.x". I use python 3.6.2
>>>
soup = BeautifulSoup(page.content, "html.parser") html = list(soup.children)[1] body = list(soup.children)[2] btn = body.find("button") print(btn)<button class="actionbtn" id="getlinks" type="submit"><table class="gl1"><tr><td class="gl2"><img alt="Get download links" src="img/links.png"/></td><td class="gl3">Get download links!<br/></td></tr></table></button>
>>>