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

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

Open
1 task done
MRasmussen2000 opened this issue Jun 5, 2023 · 1 comment
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@MRasmussen2000
Copy link

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
@bhavanvir bhavanvir assigned bhavanvir and alexwholland and unassigned bhavanvir Nov 16, 2023
@bhavanvir bhavanvir added the bug Something isn't working label Nov 16, 2023
@bhavanvir
Copy link
Member

Hey, sorry about the late reply, but thanks for taking the time to create an issue. This is most likely a problem with one of the regex capture groups. We'll get around to fixing this eventually, but feel free to try fixing it yourself and submitting a pull request with your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants