lleballex / magiceden-bot

Telegram bot that parses NFTs from Magic Eden
MIT License
28 stars 12 forks source link

Hi, i got a problem in bot.py.. #1

Open niftylaboratory opened 2 years ago

niftylaboratory commented 2 years ago

DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop()

This is the error, and the bot when is hosted don't show any commands..

Thank you very much for your code!

lleballex commented 2 years ago

Try to replace loop = asyncio.get_event_loop() with:

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
niftylaboratory commented 2 years ago

Perfect thank you, now the bot runs good... But when I wanna add a new parcel, after adding the name of the collection the bot replies this: Ой-ой... Что-то пошло не так - код 403

How can i fix it? Thank you!

lleballex commented 2 years ago

This is because the site has Cloudflare protection that blocks requests. I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can

niftylaboratory commented 2 years ago

Ohh okay mate, i'll try... thank you!

On Wed, 2 Feb 2022 at 17:30, lleballex @.***> wrote:

This is because the site has Cloudflare protection that blocks requests. I'm trying to bypass it, but so far it doesn't work. Sorry. Maybe you can

— Reply to this email directly, view it on GitHub https://github.com/lleballex/magiceden-bot/issues/1#issuecomment-1028121760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVXYP3PYQ33MVCWQIOAHDLTUZFL3BANCNFSM5NJTDMYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

niftylaboratory commented 2 years ago

https://stackoverflow.com/questions/68930114/bypass-cloudflares-captcha-with-headless-chrome-using-puppeteer-on-heroku

Maybe can help..