Oxylabs Python SDK
Uman Shahzad

Uman Shahzad @mslm_uman

About: CEO @ Mslm | Making things better | Where others see norm, we see opportunity

Location:
Lahore, Pakistan
Joined:
Feb 5, 2024

Oxylabs Python SDK

Publish Date: Jun 24 '24
4 0

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!

Comments 0 total

    Add comment