samirsalman / AmazonOffers-TelegramBot

This project is a Telegram Bot connected to a Telegram Channel that checks Amazon offers and send them to your Channel.
144 stars 48 forks source link

Info project #38

Open uweb-it opened 1 year ago

uweb-it commented 1 year ago

Hello I would like to know if the project works, and if someone using it. Thank you

paolofrancioso commented 1 year ago

I'm using and modifying it...with Bitly Integration for short links and so on. Up to now this works perfectly.

uweb-it commented 1 year ago

Dopo aver dato il comando python bot.py ricevo questo messaggio- Puoi aiutarmi per favore? Grazie mille!

C:\Users\xxxxx\ccccc\Amazon\bot.py:1: DeprecationWarning: module 'sre_parse' is deprecated from sre_parse import CATEGORIES Request received Request received Request received Request received Request received Request received INFO:root: Sending posts to channel INFO:root:'Bot' object has no attribute 'send_message' INFO:root: Sending posts to channel INFO:root:'Bot' object has no attribute 'send_message' INFO:root: Sending posts to channel INFO:root:'Bot' object has no attribute 'send_message' Request received Request received ....

I'm using and modifying it...with Bitly Integration for short links and so on. Up to now this works perfectly.

paolofrancioso commented 1 year ago

Hai seguito la procedura di installazione con anche i requirements? Uno dei passaggi manuali anche con il setup automatico era da fare comunque. Non vorrei ti mancassero delle librerie.

uweb-it commented 1 year ago

Ho eseguito installazione manuale: pip3 install -r requirements.txt cd paapi5-python-sdk python3 setup.py build python3 setup.py install cd ..

Unica cosa che ho notato dopo aver lanciato il comando "python3 setup.py install" alla fine della sua elaborazione mi da questo messaggio:

error: [WinError 32] Impossibile accedere al file. Il file è utilizzato da un altro processo: 'c:\users\sebastiano\appdata\local\programs\python\python311\lib\site-packages\paapi5_python_sdk-1.0.0-py3.11.egg'

Una domanda come hai settato le categorie? Potrebbe essere che non trova oggetti e quindi non pubblica nulla sul canale? Grazie!

Hai seguito la procedura di installazione con anche i requirements? Uno dei passaggi manuali anche con il setup automatico era da fare comunque. Non vorrei ti mancassero delle librerie.

paolofrancioso commented 1 year ago

Mh..non penso sia colpa delle categorie. Se la categoria è sbagliata da proprio un errore specifico (se invece con i filtri non trova nulla non saprei, ma è difficile che non trovi nulla). L'errore nel log sembra dovuto al fatto che non trova proprio il metodo ed è possibile che l'errore di installazione che ti da sia proprio il motivo. Io da Linux non ho avuto problemi. Su windows non ho provato. I comandi manuali li hai lanciati da dentro la cartella del progetto? (scusa le domande banali). Se l'installazione ha avuto successo dentro la cartella paapi5-python-sdk ti dovresti trovare almeno queste folder: build/lib dist paapi5-python-sdk paapi5-python-sdk.egg-info

uweb-it commented 1 year ago

Ti confermo ho lanciato i comandi manuali da dentro la cartella del progetto. E dentro la cartella dentro la cartella paapi5-python-sdk ci sono le cartelle da te indicate.

Ora prima di provare a installare Linux potresti dirmi se sono corrette queste impostazioni ? CHANNEL_NAME = "@amazon_offerte_sconti_uweb" ho provato con un nome di fantasia CHANNEL_NAME = "@33333" e ho lo stesso errore. Deve essere un canale non un gruppo telegram? (le sto pensando tutte)

Categorie:

categories = { "HomeAndKitchen": ["piatti", "aspirapolvere"] }

Mh..non penso sia colpa delle categorie. Se la categoria è sbagliata da proprio un errore specifico (se invece con i filtri non trova nulla non saprei, ma è difficile che non trovi nulla). L'errore nel log sembra dovuto al fatto che non trova proprio il metodo ed è possibile che l'errore di installazione che ti da sia proprio il motivo. Io da Linux non ho avuto problemi. Su windows non ho provato. I comandi manuali li hai lanciati da dentro la cartella del progetto? (scusa le domande banali). Se l'installazione ha avuto successo dentro la cartella paapi5-python-sdk ti dovresti trovare almeno queste folder: build/lib dist paapi5-python-sdk paapi5-python-sdk.egg-info

paolofrancioso commented 1 year ago

Le categorie sono corrette. Il nome del canale (solo canale, non gruppo) è giusto "@nomecanale". Hai già aggiunto il bot come amministratore nel canale? Mi sono accorto ora che hai anche un: DeprecationWarning: module 'sre_parse' is deprecated from sre_parse import CATEGORIES

A me questo messaggio non appare. Potrebbe essere per via della release di python installata. Io ho la 3.8.10, mentre tu penso abbia la 3.11. Potresti provare a downgradare python anche se il messaggio sembra un warning.

Altrimenti se fosse quelli il problema devi provare a modificare la prima riga di import from sre_parse import CATEGORIES

Non riesco a provare ma potresti provare a mettere (non ho grande fiducia, ma chissà): import re import re._constants as sre import re._parser as sre_parse

uweb-it commented 1 year ago

Ho provato come mi hai suggerito a modificare il codice ma non va. Sto pensando, ci sono degli spazi cloud free dove copiare a far girare il progetto? Il tuo, dove lo hai installato? Grazie mille!

Le categorie sono corrette. Il nome del canale (solo canale, non gruppo) è giusto "@nomecanale". Hai già aggiunto il bot come amministratore nel canale? Mi sono accorto ora che hai anche un: DeprecationWarning: module 'sre_parse' is deprecated from sre_parse import CATEGORIES

A me questo messaggio non appare. Potrebbe essere per via della release di python installata. Io ho la 3.8.10, mentre tu penso abbia la 3.11. Potresti provare a downgradare python anche se il messaggio sembra un warning.

Altrimenti se fosse quelli il problema devi provare a modificare la prima riga di import from sre_parse import CATEGORIES

Non riesco a provare ma potresti provare a mettere (non ho grande fiducia, ma chissà): import re import re._constants as sre import re._parser as sre_parse

paolofrancioso commented 1 year ago

Il mio è su un vps della Contabo.

Massimogiochi26 commented 1 year ago

Lo sto usando e modificando ... con Bitly Integration per collegamenti brevi e così via. Fino ad ora funziona perfettamente.

Hi Paolo, reply to your message as I notice that you are very good. Unfortunately I have been trying to connect the bot to the python code for months. Can you help me?

What version of python did you use to start the code?

Thank you.

paolofrancioso commented 1 year ago

Lo sto usando e modificando ... con Bitly Integration per collegamenti brevi e così via. Fino ad ora funziona perfettamente.

Hi Paolo, reply to your message as I notice that you are very good. Unfortunately I have been trying to connect the bot to the python code for months. Can you help me?

What version of python did you use to start the code?

Thank you.

Hi Massimo,

If I remember right I use the 3.9.x. What kind of issue do you have?

data-miner00 commented 9 months ago

This is f*ked up, don't click on these link and report the comment

ferasawadi commented 9 months ago

This is a scam be aware pls

On Mon, 1 Jan 2024, 18:50 Shaun.myr, @.***> wrote:

This is f*ked up, don't click on these link and report the comment

— Reply to this email directly, view it on GitHub https://github.com/samirsalman/AmazonOffers-TelegramBot/issues/38#issuecomment-1873357441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETYOQSOCVEXZVXDPM2P4CTYMLEKNAVCNFSM6AAAAAAUCPE4WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTGM2TONBUGE . You are receiving this because you were mentioned.Message ID: @.***>