AttributeError: 'NoneType' object has no attribute 'group' #1
edward
commented 2023-11-18 10:20:21 +00:00
Owner
```
/home/edward/src/2019/newegg_hdd/data/2023-11-18/internal_35_page01.html
https://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100167523+8000+4814+600003489&IsNodeId=1&ActiveSearchResult=True&Order=RELEASE&PageSize=96
2023-11-18 08:50:01,696 [4104809] INFO __main__ [page: 1] [label: 3.5" internal drives]: get internal_35
2023-11-18 08:50:01,866 [4104809] CRITICAL root: Traceback (most recent call last):
File "/home/edward/src/2019/newegg_hdd/crawl.py", line 299, in <module>
get_pages()
File "/home/edward/src/2019/newegg_hdd/crawl.py", line 135, in get_pages
page_count = get_page_count(page_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/edward/src/2019/newegg_hdd/crawl.py", line 150, in get_page_count
return int(re_page.search(html).group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
```
edward
closed this issue 2023-11-24 18:46:31 +00:00
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?