Jump to content

Use multiple proxies to pull content via php


arianhojat

Recommended Posts

I would like to do something like below but am afraid the hosts i am getting info from will ban requests from my url.

 

$url = "www.myspace.com/". getUserName($userID);

$content=file_get_contents($url ,FALSE,NULL);

//parse html and store some parts in a database.

 

Do you think a site like myspace will give a poop about lil' old me and ban requests from my server?

The requests are user initated, and will only parse their webpage. So im not doing anything evil here.

Just worried when I run requests everynight, they will see a flood of requests from 1 server and ban the IP.

 

Is there anyway to get http information through various trustable proxies and what functions should i check out?

Link to comment
Share on other sites

I was looking at curl a while back to do paypal stuff, it was a tiny bit confusing.

 

Any simple code examples of curl getting http info through a proxy?

my best guess is use the proxy websites form url to curl and supply it the info of the url you want to visit and POST.

must be a more elegant way of gettign it through the proxy without using the form on the page.

 

 

Also what proxies could I trust to return reliable information?

is there a list of reliable ones?

i use hidmyass_com haha and see they supply a daily list of proxies, i could always use that as my list to randomly pick from.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.