Marketscrape / Marketscrape/marketscrape-web
Attribute Error: 'NoneType' object has no attribute 'group'
@bhavanvir is already working on this.
Since Nov 16, 2023.
- Dominant language
- Python
- Stars
- 42
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
### 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
```console
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
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
- [X] I agree to follow the Marketscrape Code of Conduct
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.