brightdata-proxy
Description
A simple helper library which helps you set up a brightdata proxy which you can use with the reqwest library.
Example
A fully working example can be found here.
// Create a proxy builder
let proxy_builder = builder
.username
.password
.build;
// Create a new proxy
// 1 session = 1 ip, as long as you use the same client you'll keep the same IP
// NOTE: you can only keep the same ip for 60 seconds, see docs: https://docs.brightdata.com/api-reference/proxy/rotate_ips
let proxy = proxy_builder
.create_new_session
.context?;
// Build your request client and use as usual
let client = new
.proxy
.build
.context?;