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

IndexError: list index out of range #1

Open
charlesmudy opened this issue Dec 1, 2021 · 2 comments
Open

IndexError: list index out of range #1

charlesmudy opened this issue Dec 1, 2021 · 2 comments

Comments

@charlesmudy
Copy link

Hello,

Trying to use your script but I get this following response from terminal:

Traceback (most recent call last): File "/Users/s/Sites/s/crawl/script.py", line 18, in <module> print(maxpages[0]) IndexError: list index out of range

Seems to be it's happening because of pager-current ... unable to find that class on the site, and I am not sure if this class is for pagination or list of sections on the page.

@chargz
Copy link
Owner

chargz commented Dec 26, 2021

Hey @charlesmudy, it looks like Clutch changed up the way they load their agencies upon click. When I wrote the script, their loading logic was different where they'd show a preview of all agencies, and the script would make use of that to get emails.

I'll work on modifying the script to fit the current Clutch website.

@charlesmudy
Copy link
Author

That would be great and thanks for looking into this @chargz

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

2 participants