Code Monkey home page Code Monkey logo

Comments (4)

vlourme avatar vlourme commented on May 23, 2024 1

Hello, can you try again with the latest version of the bot ? Also, have you followed the README correctly and selected correct permissions?

from vintedpy.

drew-dev12 avatar drew-dev12 commented on May 23, 2024

Hello - yes it's now working! It's great.

I have had the following error twice after running it for a couple hour FYI:

2023-05-11 15:29:13.765 | DEBUG | main:run_background:26 - 0 found for 1
OrderedDict([('id', 2), ('url', 'https://www.vinted.co.uk/catalog?search_text=&catalog[]=1206&price_from=0.0&price_to=60.0&currency=GBP&search_id=7719517575&order=newest_first'), ('channel_id', 1068713486990966926), ('last_sync', 1683815099)])
E 2023-05-11 15:29:14,179 asyncio: Task exception was never retrieved
future: <Task finished name='Task-22' coro=<run_background() done, defined at /home/drew/Projects/vintedpy-main/vintedpy-main/main.py:18> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "/home/drew/Projects/vintedpy-main/vintedpy-main/main.py", line 25, in run_background
items = scrape(db, sub)
File "/home/drew/Projects/vintedpy-main/vintedpy-main/scraper.py", line 46, in scrape
timestamp = item['photo']['high_resolution']['timestamp']
TypeError: 'NoneType' object is not subscriptable

from vintedpy.

vlourme avatar vlourme commented on May 23, 2024

Great! Concerning the error by looking at the stacktrace, it seems the Vinted API responded with a wrong item that does not have any timestamp, but this bot uses timestamp to keep track of what items already have been alerted.

I'll push a fix tomorrow. I keep the issue open until this is completely fixed.
Thank you for reporting 👍

from vintedpy.

vlourme avatar vlourme commented on May 23, 2024

This should be fixed, feel free to reopen if the issue persists

from vintedpy.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.