Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lib/http] Proxy API services integration #143

Closed
gnh1201 opened this issue Sep 20, 2024 · 1 comment
Closed

[lib/http] Proxy API services integration #143

gnh1201 opened this issue Sep 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gnh1201
Copy link
Owner

gnh1201 commented Sep 20, 2024

Summary

I have observed many practical use cases of Proxy API services in WelsonJS. I intend to support ScrapeOps as the primary service among these.

This will soon be integrated into the lib/http module.

Related Links

@gnh1201 gnh1201 added the enhancement New feature or request label Sep 20, 2024
gnh1201 added a commit that referenced this issue Sep 20, 2024
gnh1201 added a commit that referenced this issue Sep 20, 2024
gnh1201 added a commit that referenced this issue Sep 20, 2024
gnh1201 added a commit that referenced this issue Sep 20, 2024
@gnh1201
Copy link
Owner Author

gnh1201 commented Sep 21, 2024

I have made the following updates to ensure compatibility with the existing code. Along with the previously supported proxy tools, we now support external proxy services (e.g., ScrapeOps) as well as our own proxy service (gnh1201/caterpillar).

// If you have any suggestions for partnerships, please contact us at: [email protected]
var AVAILABLE_PROXIES = [
    {
        "type": "stateless",
        "provider": "scrapeops",
        "url": "https://proxy.scrapeops.io/v1/?api_key={api_key}&url={url}&render_js={render_js}&residential={residential}&country={country}&keep_headers={keep_headers}",
        "documentation": "https://scrapeops.io?fpr=namhyeon75"
    },
    {
        "type": "stateful",
        "provider": "scrapeops",
        "url": "http://scrapeops:{api_key}@residential-proxy.scrapeops.io:8181",
        "documentation": "https://scrapeops.io?fpr=namhyeon75"
    },
    {
        "type": "stateless-jsonrpc2",
        "provider": "gnh1201/caterpillar",
        "url": "http://localhost:5555",
        "documentation": "https://github.com/gnh1201/caterpillar"
    },
    {
        "type": "stateful",
        "provider": "gnh1201/caterpillar",
        "url": "http://localhost:5555",
        "documentation": "https://github.com/gnh1201/caterpillar"
    },
    {
        "type": "stateful",
        "provider": "cloudflare",
        "url": "http://localhost:40000",
        "documentation": "https://developers.cloudflare.com/warp-client/warp-modes/"
    },
    {
        "type": "stateful",
        "provider": "fiddler",
        "url": "http://localhost:8888",
        "documentation": "https://www.telerik.com/fiddler/fiddler-classic"
    },
    {
        "type": "stateful",
        "provider": "fiddler2",
        "url": "http://localhost:8866",
        "documentation": "https://www.telerik.com/fiddler/fiddler-everywhere"
    },
    {
        "type": "stateful",
        "provider": "mitmproxy",
        "url": "http://localhost:8080",
        "documetation": "https://mitmproxy.org/"
    },
    {
        "type": "stateful",
        "provider": "burpsuite",
        "url": "http://localhost:8080",
        "documetation": "https://portswigger.net/burp"
    },
    {
        "type": "stateful",
        "provider": "zaproxy",
        "url": "http://localhost:8080",
        "documetation": "https://www.zaproxy.org/"
    }
];

@gnh1201 gnh1201 changed the title [lib/http] Proxy API services (e.g., ScrapeOps) integration [lib/http] Proxy API services integration Sep 21, 2024
gnh1201 added a commit that referenced this issue Sep 25, 2024
@gnh1201 gnh1201 closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant