Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-03-2011, 11:12 AM   #1
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
A script to mass load up links.

Ok I have a bunch of urls. They are all affiliate urls that once you click on them will redirect to an fhg.

example:

clickref129438.example.com > fhg1.example.com


I need them in the second format and have about 100 urls that I dont want to load up individually. Is there a script to do this?
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 11:25 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
what format do you want them in?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 11:30 AM   #3
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
just a column in excel would be best
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 11:34 AM   #4
Sly
Let's do some business!
 
Sly's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,298
You could have a script written pretty cheap to do that. Though if this is a one off thing, it might be faster just to click through all of them, 100 isn't too many. Unless someone writes the code for free, probably only a couple lines would do it.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

Windows VPS now available - 1st month free for GFY members - DM for details

Wanted: CCBill pay sites for sale
Sly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 11:44 AM   #5
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,084
Quote:
Originally Posted by scottybuzz View Post
Ok I have a bunch of urls. They are all affiliate urls that once you click on them will redirect to an fhg.

example:

clickref129438.example.com > fhg1.example.com


I need them in the second format and have about 100 urls that I dont want to load up individually. Is there a script to do this?
programmer hitting u up on icq
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 12:03 PM   #6
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
so you want to extract landing urls?
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 12:16 PM   #7
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
Quote:
Originally Posted by Sly View Post
You could have a script written pretty cheap to do that. Though if this is a one off thing, it might be faster just to click through all of them, 100 isn't too many. Unless someone writes the code for free, probably only a couple lines would do it.
no this would be a weekly thing with 100 + links, but i would have thought there would be something out there thats all.


thanks BM
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 12:51 PM   #8
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
xls and csv helps me for this, use CSVed
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 01:00 PM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
put them in a text file and read it line by line and output into a csv for excel
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 01:08 PM   #10
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
Quote:
Originally Posted by cooldude7 View Post
xls and csv helps me for this, use CSVed
ok i download the program, how would i then achieve my goal please?
Quote:
Originally Posted by fris View Post
put them in a text file and read it line by line and output into a csv for excel
heh? im not too technical, could you explain how to do this or point me to an article please?
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 01:16 PM   #11
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
If you want I can write a quick script to do that for a few bucks, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 04:08 PM   #12
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
it's a simple curl with follow redirect
a 10 minute script..
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 08:09 PM   #13
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by scottybuzz View Post
ok i download the program, how would i then achieve my goal please?


heh? im not too technical, could you explain how to do this or point me to an article please?
show an example of 1 link.

do you have each url and the target url

like

http://domain1.com,http://www.domain2.com
http://domain3.com,http://www.domain5.com

etc
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2011, 09:55 PM   #14
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
no i have the first link only

http://www.dhdmedia.com/directors/wi...key=&dcdid=122
i have 100 in this format

load this up and it turns into a new link. I want to import this list and get the list of new links.

if someone can make me a script for this then please email me [email protected]
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 04:27 AM   #15
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by scottybuzz View Post
no i have the first link only

http://www.dhdmedia.com/directors/wi...key=&dcdid=122
i have 100 in this format

load this up and it turns into a new link. I want to import this list and get the list of new links.

if someone can make me a script for this then please email me [email protected]
how do you know the new link though?

where does the redirect link come from.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 04:43 AM   #16
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,570
i cant afford to add even a single fucking link...

Let alone a 'mass' of the lil fuckers!
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 06:42 AM   #17
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
Quote:
Originally Posted by fris View Post
how do you know the new link though?

where does the redirect link come from.
i dont know the new link, i just know that it redirects and i want the new one.
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 06:45 AM   #18
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by scottybuzz View Post
i dont know the new link, i just know that it redirects and i want the new one.
ahh ok so you will have to load each one and find the new link. im sure someone can post something, bit of php and curl.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 07:49 AM   #19
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
yes correct, thanks for helping fris, usually you are the guy who can find a script for anything on the net. looks like this will have to be custom, all the best
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2011, 11:59 AM   #20
Dvae
Confirmed User
 
Dvae's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
Quote:
Originally Posted by scottybuzz View Post
no i have the first link only

http://www.dhdmedia.com/directors/wi...key=&dcdid=122
i have 100 in this format

load this up and it turns into a new link. I want to import this list and get the list of new links.

if someone can make me a script for this then please email me [email protected]

Try this:
PHP Code:
<html>
<head>
    <title>Untitled Test</title>
    <meta name="generator" content="BBEdit">
</head>

<body>
<font size=1 face=verdana>

<?php
$pages_array 
= array(
"http://www.dhdmedia.com/directors/wifeycash?dcwid=124465&dcokey=&dcdid=120",
"http://www.dhdmedia.com/directors/wifeycash?dcwid=124465&dcokey=&dcdid=119",
"http://www.dhdmedia.com/directors/wifeycash?dcwid=124465&dcokey=&dcdid=118",
);


function 
follow_redirect($url){
   
$redirect_url null;

   if(
function_exists("curl_init")){
      
$ch curl_init($url);
      
curl_setopt($chCURLOPT_HEADERtrue);
      
curl_setopt($chCURLOPT_NOBODYtrue);
      
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
      
$response curl_exec($ch);
      
curl_close($ch);
   }
   else{
      
$url_parts parse_url($url);
      
$sock fsockopen($url_parts['host'], (isset($url_parts['port']) ? (int)$url_parts['port'] : 80));
      
$request "HEAD " $url_parts['path'] . (isset($url_parts['query']) ? '?'.$url_parts['query'] : '') . " HTTP/1.1\r\n";
      
$request .= 'Host: ' $url_parts['host'] . "\r\n";
      
$request .= "Connection: Close\r\n\r\n";
      
fwrite($sock$request);
      
$response fread($sock2048);
      
fclose($sock);
   }

   
$header "Location: ";
   
$pos strpos($response$header);
   if(
$pos === false){
      return 
false;
   }
   else{
      
$pos += strlen($header);
      
$redirect_url substr($response$posstrpos($response"\r\n"$pos)-$pos);
      return 
$redirect_url;
   }
}
for(
$idx 0$idx count($pages_array); ++$idx) {
$idx_cnt $idx+1;
$url = ($pages_array[$idx]);
// 
// echo '<ol>';
while(($newurl follow_redirect($url)) !== false){
//    echo '<li>', $url, '</li>';
   
echo $url' ';
   
$url $newurl;
}
// echo '</ol>';

 
echo '<a href="'$url'">'$url'</a><br>';
//echo ' $url';
}
?>

</font></body>
</html>
__________________
.
.

Arguing with a troll is a lot like wrestling in the mud with a pig, after a couple of hours you realize the pig likes it.
Dvae is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-05-2011, 12:58 AM   #21
nextri
Confirmed User
 
nextri's Avatar
 
Industry Role:
Join Date: May 2004
Location: Norway
Posts: 1,661
Hey, not bad. someone coding for free, and being helpful on gfy. Who would have thought?
__________________
DivaTraffic - Traffic for Models
nextri is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.