Giter VIP home page Giter VIP logo

Comments (7)

Azmandios avatar Azmandios commented on May 30, 2024 4

I need help! I need for test and development, array proxy more 5 items. Contact my on email (in profile) or telegram (this nick).

I created pull-request for added ProxyMiddleware, currently for one proxy.

For use:

	public array $downloaderMiddleware = [
		[ProxyMiddleware::class, ['proxyList' => [
			'http://xxx.xxx.xxx.156:3128',  // http://IP:PORT
		]]]
	];

Then I want to add processing by:

  • an array of proxies,
  • getting from a file,
  • getting from a database

from core.

Azmandios avatar Azmandios commented on May 30, 2024

Scraping without changing IP is not possible in mose case.

Create middleware to handle outgoing request.

Link to official documentation:
https://roach-php.dev/docs/spider-middleware#request-middleware

In my free time, want to create ProxyMiddleware, in you can pass an array of proxies to it

from core.

Benoit1980 avatar Benoit1980 commented on May 30, 2024

https://roach-php.dev/docs/spider-middleware#request-middleware

Thank you. I checked the link but there is no mention of proxies using a middleware.

from core.

simonfunk avatar simonfunk commented on May 30, 2024

Looking also for that. Proxies are really import in web scraping topics ;)

from core.

Benoit1980 avatar Benoit1980 commented on May 30, 2024

Looking also for that. Proxies are really import in web scraping topics ;)

Yes for sure, I am waiting for them to add some kind of example. I am not sure why there is no example on this, as the proxy idea is as important as the spider.

from core.

cverster avatar cverster commented on May 30, 2024

Upvote on this, also looking for an easy way to use proxies with roach.

from core.

Benoit1980 avatar Benoit1980 commented on May 30, 2024

I need help! My for test and development need array proxy more 5 items. Contact my on email (in profile) or telegram (this nick).

I created pull-request for added ProxyMiddleware, currency for one proxy.

For use:

	public array $downloaderMiddleware = [
		[ProxyMiddleware::class, ['proxyList' => [
			'http://xxx.xxx.xxx.156:3128',  // http://IP:PORT
		]]]
	];

Then I want to add processing by:

  • an array of proxies,
  • getting from a file,
  • getting from a database

I think we are all pretty much looking for this solution.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.