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

soup.find (span) returning none #1

Open
Anuj79 opened this issue Nov 20, 2018 · 0 comments
Open

soup.find (span) returning none #1

Anuj79 opened this issue Nov 20, 2018 · 0 comments

Comments

@Anuj79
Copy link

Anuj79 commented Nov 20, 2018

result = soup.find("span", id="s-result-count")

Traceback (most recent call last):
File "warehouse.py", line 211, in
notify_user()
File "warehouse.py", line 182, in notify_user
notifyDict = create_email_message()
File "warehouse.py", line 156, in create_email_message
finalDict = scrap_data()
File "warehouse.py", line 98, in scrap_data
resultCount, navPages = crunch_numbers()
File "warehouse.py", line 82, in crunch_numbers
resultCount = parse_result(result)
File "warehouse.py", line 46, in parse_result
matchGroup = matchRegex.findall(result)
TypeError: expected string or bytes-like object

i did some research and the code looks rights. the webpage has the tag that you are trying to find.. any thoughts

<span id="s-result-count">4 results for

my python version is Python 3.5.3

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