Giter Site home page Giter Site logo

Comments (8)

mdm9300404 avatar mdm9300404 commented on August 13, 2024

I have been looking for something similar to aiocfscrape for such a long time. Thanks for the suggestion!

@FireHead90544 Think we should implement it?

from craiyon.py.

FireHead90544 avatar FireHead90544 commented on August 13, 2024

The switch to CloudScraper worked for the standard generate function. However, the async functions are still throwing Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8'.

Recommend using a library like aiocfscrape to support CloudScraper's functionality for the async functions.

Oh so that's it, I totally forgot about the async-calls. That's a great idea.

from craiyon.py.

FireHead90544 avatar FireHead90544 commented on August 13, 2024

I have been looking for something similar to aiocfscrape for such a long time. Thanks for the suggestion!

@FireHead90544 Think we should implement it?

Yea, I guess we should go with it.

from craiyon.py.

sionit1337 avatar sionit1337 commented on August 13, 2024

How to solve this problem if my discord bot returns this error?

from craiyon.py.

FireHead90544 avatar FireHead90544 commented on August 13, 2024

How to solve this problem if my discord bot returns this error?

Will be updating the logic for async calls soon using aiocfscrape or alternative probably

from craiyon.py.

sionit1337 avatar sionit1337 commented on August 13, 2024

Will be updating the logic for async calls soon using aiocfscrape or alternative probably

And when will the fix be released?

from craiyon.py.

truongquangtung2020 avatar truongquangtung2020 commented on August 13, 2024

Can you make an example for me pls?

from craiyon.py.

FireHead90544 avatar FireHead90544 commented on August 13, 2024

Refer to this comment regarding more details: #19 (comment)

TL;DR: Removed the cloudscraper dependency and switched to using headers. v3 works normally, v1 sometimes fails.

Update the wrapper by running: pip install -U craiyon.py

Reopen the issue if this issue still persists

from craiyon.py.

Related Issues (17)

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.