DEV Community

Cover image for Oxylabs Python SDK
Uman Shahzad
Uman Shahzad

Posted on

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)