Skip to content

Attribute Error: 'NoneType' object has no attribute 'group' #69

Description

@MRasmussen2000

Summary

This occurs when analyzing a link to an item. The analysis fails and then the user can not see any data or receive new information. The load out of the HTML is below. Suspected cause is the update of Facebook Marketplace inhibiting web scraping information.

Component Name

marketscrape/scraper/views.py

OS / Environment

Mac OS
Visual Studio Code Docker Environment

Steps to Reproduce

Run the server and view the information on webpage.
Link opens in Safari and copied Safari link pasted into box
Analyze button is clicked and then it fails to run.

Expected Results

Expecting to see visual output with AI data and information.

Actual Results

Request Method: | POST
-- | --
http://127.0.0.1:8000/
4.2
AttributeError
'NoneType' object has no attribute 'group'
/workspaces/marketscrape/scraper/shop_class.py, line 61, in <listcomp>
scraper.views.Index
/usr/local/bin/python
3.10.11
['/workspaces/marketscrape',  '/usr/local/lib/python310.zip',  '/usr/local/lib/python3.10',  '/usr/local/lib/python3.10/lib-dynload',  '/usr/local/lib/python3.10/site-packages']
Mon, 05 Jun 2023 21:06:39 +0000

Code of Conduct

  • I agree to follow the Marketscrape Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions