Skip to content

soup.find (span) returning none  #1

Description

@Anuj79

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions