ScrapeOps / scrapeops-scrapy-sdk

Scrapy extension that gives you all the scraping monitoring, alerting, scheduling, and data validation you will need straight out of the box.
https://scrapeops.io/
BSD 3-Clause "New" or "Revised" License
37 stars 9 forks source link

Статистика не отправляется #4

Open Xewus opened 2 years ago

Xewus commented 2 years ago

When it is written in the settings BASE_DIR = Path(__file__).resolve().parent.parent the extension does not send statistics to the API. Even if it is written in another module and then imported into the settings.

But this works OK if write BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

ronaldokun commented 1 year ago

Yes, I stumbled upon the same thing. If you use the pathlib module anywhere in the settings it's not sending statistics to the API.