Code Monkey home page Code Monkey logo

vintedpy's People

Contributors

vlourme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vintedpy's Issues

Error embed

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.

Subscription crashes

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

vinted api Oauth

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

Search for few items

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?

Temporary IP bans

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

How search items

Hi, how can I add the items I want to search for once the bot is started?

data folder

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!

error

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

Problem with subscibe

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

Hikari error

Hi, it gives me this error, I don't know how to solve it, could you help me?
error7

Error retrieving oauth token

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

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.