DEV Community

Cover image for Oxylabs Python SDK
Uman Shahzad
Uman Shahzad

Posted on

4

Oxylabs Python SDK

Hello everyone! We've created a Python SDK for the Oxylabs Scraper APIs to help simplify integrating with Oxylabs's APIs.

You can find it here: https://pypi.org/project/oxylabs/

Would appreciate if Oxylabs users could try it out and give their feedback so we can start addressing it and improving the SDK.

Here's a quick start example:

from oxylabs import RealtimeClient

# Set your Oxylabs API Credentials.
username = "username"
password = "password"

# Initialize the SERP Realtime client with your credentials.
c = RealtimeClient(username, password)

# Use `bing_search` as a source to scrape Bing with nike as a query.
res = c.serp.bing.scrape_search("nike")

print(res.raw)
Enter fullscreen mode Exit fullscreen mode

It works with both the real-time and async integration methods and makes it especially easy to use the latter method which is otherwise quite tedious.

Source code is at https://github.com/oxylabs/oxylabs-sdk-python

Thank you!

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay