Skip to content

packetstream/packetstream-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacketStream Examples

This repository provides a collection of code examples for programmatically accessing the PacketStream residential proxy network. You'll find sample code and Docker configurations to help you integrate PacketStream proxies into your projects.

Getting Started

To get started, you'll need to sign up for a PacketStream account and obtain an API key. You can sign up for an account at packetstream.io. Once you have an account, you can find your API key in the PacketStream dashboard.

Examples

Running the Examples

Each example is self-contained and can be run independently. To run an example, you'll need to install the required dependencies or use the provided Docker configuration.

# Clone the repository
git clone git@github.com:packetstream/packetstream-examples.git

# Change to the project directory
cd packetstream-examples

# Change to the example directory for the language you're interested in
cd go

# Run the example with Docker
PACKETSTREAM_PROXY_URLS="socks5h://username:auth_key@proxy.packetstream.io:31113,https://username:auth_key@proxy.packetstream.io:31111" ./run.sh

# Or run the example natively
PACKETSTREAM_PROXY_URLS="socks5h://username:auth_key@proxy.packetstream.io:31113,https://username:auth_key@proxy.packetstream.io:31111" go run main.go

Environment Variables

  • PACKETSTREAM_PROXY_URLS: A comma-separated list of URLs of PacketStream proxies you want to use. Replace username and auth_key with your PacketStream username and auth key respectively.

Contributing

Contributions to this repository are welcome. If you have an example or improvement you'd like to share, feel free to open a pull request.

Caution

Please be careful not to expose hard-coded PacketStream credentials in your contributions. This is a public repository, and your credentials could be exposed to the public if you include them in your code.

Feel free to include your referral link in your pull request if you would like to be credited for your contribution.

License

This repository is licensed under the MIT License. Public contributions to this repository are subject to the same license. See the LICENSE file for more information.

Support

If you encounter any issues or have questions about using PacketStream proxies, please contact PacketStream support.

About PacketStream

PacketStream is a residential proxy network that enables businesses to access the web through a pool of residential IPs. With PacketStream, you can gather data, scrape websites, and perform other web-related tasks with requests originating from real residential ISPs all over the world.

For more information, visit PacketStream.io.

About

Code examples for the PacketStream residential proxy network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published