okainov / ebay-kleinanzeigen Goto Github PK
View Code? Open in Web Editor NEWTelegram bot notifying about new ads on Ebay-Kleinanzeigen.de
Telegram bot notifying about new ads on Ebay-Kleinanzeigen.de
Heyo,
I want to run the bot in polling mode, since I don't want to expose my home IP and don't want to setup any domain / Cloudflare thing.
So my question is, is there a downside of using the polling mode as "production" mode?
Hi there, i am trying to get this to run in docker but fail with this error message:
2023-02-05T11:18:47.247461163Z Traceback (most recent call last):
2023-02-05T11:18:47.247519985Z File "/app/main.py", line 16, in <module>
2023-02-05T11:18:47.247533795Z 'default': SQLAlchemyJobStore(url='sqlite:///jobs.sqlite')
2023-02-05T11:18:47.247540306Z File "/usr/local/lib/python3.8/site-packages/apscheduler/jobstores/sqlalchemy.py", line 60, in __init__
2023-02-05T11:18:47.247549996Z Column('id', Unicode(191, _warn_on_bytestring=False), primary_key=True),
2023-02-05T11:18:47.247553986Z File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/sqltypes.py", line 325, in __init__
2023-02-05T11:18:47.247558106Z super().__init__(length=length, **kwargs)
2023-02-05T11:18:47.247561356Z TypeError: __init__() got an unexpected keyword argument '_warn_on_bytestring'
any idea where i would need to look to solve this problem?
thanks a lot!
Can you please a bit more specific on how to run this on windows pc? and how does this program notifies when a new ad is available?
Hi,
is there any small howto to run your software? It sounds interesting, but where do i put links?
Cheers!
Hi,
right now there is a problem after restarting/pausing the docker container.
Since "last_item" (and perhaps also "url") is not stored in an external database/file, the script just stops working after a restart of the docker container.
Therefore, there would need to be a .db-file, in which the last id's and given url's are stored to continue the job after a restart, if these are empty and initialization was done beforehand.
Hi, I can not understand what exactly the error is. Does somebody has any idea?
[INFO] Running job "echo (trigger: interval[0:02:00], next run at: 2022-04-20 20:21:34 UTC)" (scheduled at 2022-04-20 20:19:34.563367+00:00)
[INFO] Started echo
[ERROR] Job "echo (trigger: interval[0:02:00], next run at: 2022-04-20 20:21:34 UTC)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/app/main.py", line 121, in echo
last_items[chat_id] = {'last_item': items[0].url, 'search_url': url}
IndexError: list index out of range
Hey, my build fails on a raspberry on:
pi@raspberrypi:~/ebay-kleinanzeigen $ sudo docker-compose build
/usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py:163: CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no longer supported by the OpenSSL project, please upgrade. The next version of cryptography will drop support for it.
utils.CryptographyDeprecationWarning
Building tg-bot
Step 1/7 : FROM python:3.8
---> 94ebb02c00ed
Step 2/7 : RUN mkdir ../app
---> Running in 877ddebe3f7f
ERROR: Service 'tg-bot' failed to build: The command '/bin/sh -c mkdir ../app' returned a non-zero code: 139
i tried with and without sudo. freshly after dist-upgrade. Any ideas?
Looks like Ebay Kleinanzeigen has changed their site to return a 403 Forbidden
for requests like the ones made by this bot.
2021-01-24 20:08:51,909 [INFO] Started echo
2021-01-24 20:08:51,996 [INFO] Added job "echo" to job store "default"
2021-01-24 20:08:51,997 [INFO] Scheduled job
Update "%s" caused error "%s" {'update_id': 894274138, 'message': {'message_id': 1890, 'date': 1611515331, 'chat': {'id': 1234567, 'type': 'private', 'username': 'n1try', 'first_name': 'Ferdinand'}, 'text': 'https://www.ebay-kleinanzeigen.de/s-suchanfrage.html?keywords=macbook&categoryId=&locationStr=76137+Karlsruhe&locationId=9192&radius=0&sortingField=SORTING_DATE&adType=&posterType=&pageNum=1&action=find&maxPrice=&minPrice=', 'entities': [{'type': 'url', 'offset': 0, 'length': 222}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1234567, 'first_name': 'Ferdinand', 'is_bot': False, 'username': 'n1try', 'language_code': 'en'}}, '_effective_user': {'id': 32850066, 'first_name': 'Ferdinand', 'is_bot': False, 'username': 'n1try', 'language_code': 'en'}, '_effective_chat': {'id': 1234567, 'type': 'private', 'username': 'n1try', 'first_name': 'Ferdinand'}, '_effective_message': {'message_id': 1890, 'date': 1611515331, 'chat': {'id': 1234567, 'type': 'private', 'username': 'n1try', 'first_name': 'Ferdinand'}, 'text': 'https://www.ebay-kleinanzeigen.de/s-suchanfrage.html?keywords=macbook&categoryId=&locationStr=76137+Karlsruhe&locationId=9192&radius=0&sortingField=SORTING_DATE&adType=&posterType=&pageNum=1&action=find&maxPrice=&minPrice=', 'entities': [{'type': 'url', 'offset': 0, 'length': 222}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1234567, 'first_name': 'Ferdinand', 'is_bot': False, 'username': 'n1try', 'language_code': 'en'}}} list index out of range
I assume that you will have to include the cookies set by the first request when performing the second one to follow the redirect.
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.