Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'HTML' object has no attribute 'next' #148

Closed
zhang-win opened this issue Mar 23, 2018 · 4 comments
Closed

AttributeError: 'HTML' object has no attribute 'next' #148

zhang-win opened this issue Mar 23, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@zhang-win
Copy link

I try these codes from document online:

>>> r = session.get('https://reddit.com')
>>> r.html.next()

catch exception error like the title says:

AttributeError: 'HTML' object has no attribute 'next'

OS: Ubuntu17.10 Python: 3.6.2 IDE: ipython

Is it a up-to-date feature?

@mzeidhassan
Copy link

mzeidhassan commented Mar 23, 2018

@zhang-win This code works perfectly fine with me. Please double check at your end!

from requests_html import HTMLSession
session = HTMLSession()
r = session.get('https://reddit.com')
r.html.next()

Result:

'https://www.reddit.com/?count=25&after=t3_86l0nt'

@oldani
Copy link
Member

oldani commented Mar 24, 2018

I fixed this on #146; while it gets merged you can use r.html._next().

@oldani oldani added the bug Something isn't working label Feb 14, 2019
@oldani
Copy link
Member

oldani commented Feb 14, 2019

This was already solved, you can install from the repository or wait for the new release.

@oldani
Copy link
Member

oldani commented Feb 18, 2019

v0.10.0 was released yesterday fixing this bug.

@oldani oldani closed this as completed Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants