vlourme / vintedpy Goto Github PK
View Code? Open in Web Editor NEWGet alerted on Discord when new Vinted articles are published ๐
License: GNU General Public License v3.0
Get alerted on Discord when new Vinted articles are published ๐
License: GNU General Public License v3.0
Je viens vous reports un petit bug si on mais plein de lien et qu'on fait la commande /subcribtions le bot crash il ne peut pas envoyer tous les liens dans l'embed car il dรฉpace la limite de texte.
i subscribed to french vinted ( vinted.fr ) but the result always give me vinted.de
where do we can change that ?
Hello there,
When setting up a subscription it crashes. The input is "/subscribe channel: #jackets url: https://www.vinted.fr/catalog?search_text=carhart"
Any idea why this is happening?
Thanks!
E 2023-01-28 02:17:30,709 hikari.event_manager: an exception occurred handling an event (InteractionCreateEvent)
Traceback (most recent call last):
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\app.py", line 1163, in invoke_application_command
await context.invoke()
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\context\base.py", line 328, in invoke
await self.command.invoke(self)
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\commands\base.py", line 775, in invoke
await self(context, **kwargs)
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\commands\base.py", line 690, in call
return await self.callback(context, **kwargs)
File "C:\Users\Drew\AppData\Local\Programs\Python\Projects\vintedpy-main\main.py", line 57, in subscribe
table.insert({
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\dataset\table.py", line 118, in insert
row = self._sync_columns(row, ensure, types=types)
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\dataset\table.py", line 381, in _sync_columns
self._sync_table(sync_columns.values())
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\dataset\table.py", line 324, in _sync_table
self._reflect_table()
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\dataset\table.py", line 306, in _reflect_table
self.name, self.db.metadata, schema=self.db.schema, autoload=True
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\dataset\database.py", line 109, in metadata
return MetaData(schema=self.schema, bind=self.executable)
TypeError: MetaData.init() got an unexpected keyword argument 'bind'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\app.py", line 1204, in handle_interaction_create_for_application_commands
await self.invoke_application_command(context)
File "C:\Users\Drew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\lightbulb\app.py", line 1181, in invoke_application_command
raise new_exc
lightbulb.errors.CommandInvocationError: An error occurred during command 'subscribe' invocation
i added a subscription in the discord server and i got a error. Failed to get oauth token
Traceback (most recent call last):
File ".\Bureaublad\vinted bot\vintedpy\main.py", line 25, in run_background
items = scrape(db, sub)
File ".\Bureaublad\vinted bot\vintedpy\scraper.py", line 21, in scrape
response = search(params["url"], {"per_page": 20})
File ".\Bureaublad\vinted bot\vintedpy\api.py", line 96, in search
session = get_oauth_token()
File ".\Bureaublad\vinted bot\vintedpy\api.py", line 36, in get_oauth_token
raise Exception('Failed to get oauth token')
Exception: Failed to get oauth token
Hey , I've got this error :
hikari.errors.UnauthorizedError: Unauthorized 401: '401: Unauthorized' for https://discord.com/api/v10/gateway/bot
Hi, after I start the bot, it sends a couple of results and then it stops, and it doesn't send anything anymore, do you know how I can fix it?
ile "C:\Users\orsin\Desktop\VintDiscord\vintedpy\main.py", line 25, in run_background
items = scrape(db, sub)
^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\scraper.py", line 21, in scrape
response = search(params["url"], {"per_page": 20})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 96, in search
session = get_oauth_token()
^^^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 36, in get_oauth_token
raise Exception('Failed to get oauth token')
Exception: Failed to get oauth token
Hi, how can I add the items I want to search for once the bot is started?
Hello, thank you so much for this program!
I have a question. How do you do this step: "Create directory for database (A data folder is needed: mkdir data)".
Thanks a lot!
Hello, I have this error that occurs when the bot works
E 2022-03-04 11:16:13,500 asyncio: Task exception was never retrieved
future: <Task finished name='Task-16' coro=<run_background() done, defined at /home/container/main.py:18> exception=TypeError('in embed.fields[1].value - cannot have empty string')>
Traceback (most recent call last):
File "/home/container/main.py", line 27, in run_background
await bot.rest.create_message(sub['channel_id'], embed=embed, components=[row])
File "/home/container/.local/lib/python3.10/site-packages/hikari/impl/rest.py", line 1365, in create_message
body, form = self._build_message_payload(
File "/home/container/.local/lib/python3.10/site-packages/hikari/impl/rest.py", line 1301, in _build_message_payload
embed_payload, embed_attachments = self._entity_factory.serialize_embed(embed)
File "/home/container/.local/lib/python3.10/site-packages/hikari/impl/entity_factory.py", line 1040, in serialize_embed
raise TypeError(f"in embed.fields[{i}].value - cannot have empty string")
TypeError: in embed.fields[1].value - cannot have empty string
Hi, why when I enter a search link of vinted.fr, it returns when it finds vinted.com items? do you know how I can fix it,
it would help me a lot
le bot tourne mais est il possible de mettre des filtres dans la recherche vinted ( peut on modifier l'url vinted ?)
Merci d'avance
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\main.py", line 25, in run_background
items = scrape(db, sub)
^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\scraper.py", line 21, in scrape
response = search(params["url"], {"per_page": 20})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 96, in search
session = get_oauth_token()
^^^^^^^^^^^^^^^^^
File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 36, in get_oauth_token
raise Exception('Failed to get oauth token')
Exception: Failed to get oauth token
I can't get this to work, I've installed everything but as soon as I create my first subscrition, the bot gets stuck at "Executing scraping loop". The sample URL was "https://www.vinted.fr/catalog?search_text=nike"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.