Marketscrape / Marketscrape/marketscrape-web

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

Open
#69 1 comment 0 reactions 2 assignees View on GitHub

@bhavanvir is already working on this.

Since Nov 16, 2023.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.