Skip to content

PyGrab now supports async/await!

Latest
Compare
Choose a tag to compare
@akneni akneni released this 30 Mar 20:37
· 8 commits to main since this release

PyGrab v3.1.0 Release Notes

We're thrilled to announce that PyGrab has reached version 3.1.0, and with it comes one of the most requested features to date – full async/await support!

What's New?

  • Async/Await Support: PyGrab's functions are now fully asynchronous, enabling you to write cleaner and more performant code, especially when making multiple concurrent network requests. Embrace the async paradigm and streamline your web scraping and networking tasks with ease.

  • Improved Performance: Thanks to our async overhaul, you can expect significant performance improvements when performing IO-bound operations. PyGrab now leverages modern Python's async capabilities to reduce waiting times and make your applications faster.

  • Enhanced Tor Integration: We've made our Tor support more robust with better error handling and improved proxy configuration. Enjoy more reliable and secure sessions out of the box.

Migrating to v3.1.0

If you're upgrading from an earlier version, here's what you need to know:

  • Existing get_async() function calls will need to be changed to get_batch() since get_async() is now the function that returns a coroutine.
  • Make sure to update your environment to Python 3.7+ to enjoy the full benefits of async/await.