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

List index out of range error #3

Open
dhekabai opened this issue Apr 30, 2021 · 0 comments
Open

List index out of range error #3

dhekabai opened this issue Apr 30, 2021 · 0 comments

Comments

@dhekabai
Copy link

dhekabai commented Apr 30, 2021

Traceback (most recent call last):
File "C:\Users\XXX\Desktop\Justdial-Scrapper-master\get.py", line 5, in
get_data_from_url(ex_url,print_response=True)
File "C:\Users\XXX\Desktop\Justdial-Scrapper-master\justDail_scraper.py", line 253, in get_data_from_url
phone_no=(get_phone_no(wd.page_source))
File "C:\Users\XXX\Desktop\Justdial-Scrapper-master\justDail_scraper.py", line 20, in get_phone_no
sheet = cssutils.parseString(str(style[len(style)-1].text))
IndexError: list index out of range

I have a get.py file with just the example code:

from justDail_scraper import get_data_from_url

ex_url='https://www.justdial.com/Delhi/Dr-S-K-Mundhra-Opposite-St-Margreet-School-Prashant-Vihar/011PXX11-XX11-130130123521-H6P2_BZDET?xid=RGVsaGkgQ2xpbmljcw=='

get_data_from_url(ex_url,print_response=True)
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