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

Breaks when search results fit in one page #3

Open
m-rey opened this issue Jan 21, 2020 · 0 comments
Open

Breaks when search results fit in one page #3

m-rey opened this issue Jan 21, 2020 · 0 comments

Comments

@m-rey
Copy link
Owner

m-rey commented Jan 21, 2020

Traceback (most recent call last):
  File "./immoscraper.py", line 51, in <module>
    page_count = get_page_count(mainpage_result)
  File "./immoscraper.py", line 18, in get_page_count
    .find("select", {"class": "select font-standard"})
AttributeError: 'NoneType' object has no attribute 'find_all'

The script gets the page count from the dropdown menu. When there is no such menu ( because all the results fit in one page), the script fails.
Implementing #1 to manage page traversal should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant