GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   any easy way of loading a text file full of urls and loading browser to them? (https://gfy.com/showthread.php?t=1055675)

fris 01-31-2012 01:17 PM

any easy way of loading a text file full of urls and loading browser to them?
 
i have a list of urls i want to visit, to check, anyway to do this?

EddyTheDog 01-31-2012 01:21 PM

How long is the list?

Will it take longer to code a script or to cut and paste?

Fletch XXX 01-31-2012 01:23 PM

save as html file then import into browser and open all in tabs

sixsax 01-31-2012 01:23 PM

Hmm, something like this?

<script type="text/javascript">
urls = ["http://google.com/", "https://gfy.com/", "http://goatse.info/"];
for(var i = 0; i < urls.length; i++) {
window.open(urls[i], "_blank");
}
</script>

WiredGuy 01-31-2012 01:27 PM

You can batch script it. I can't recall off hand, but there's a dll file that will process url's from the command line to your default browser. Similiar to opening a webpage by double clicking in explorer, it will open your default browser with the url from the command line. I can't for the life of me remember the name of the dll, google it. Then put a sleep timer between requests and you're good.
WG

fris 01-31-2012 01:58 PM

Quote:

Originally Posted by WiredGuy (Post 18723881)
You can batch script it. I can't recall off hand, but there's a dll file that will process url's from the command line to your default browser. Similiar to opening a webpage by double clicking in explorer, it will open your default browser with the url from the command line. I can't for the life of me remember the name of the dll, google it. Then put a sleep timer between requests and you're good.
WG

Ya I ended up doing some scripting.

here is the final code for anyone that is interested.

Code:

inputFile = "test.txt"

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = WScript.CreateObject("Scripting.Filesystemobject")
Set urls = fso.OpenTextFile(inputFile)
 
Do Until urls.AtEndOfStream
  url = urls.ReadLine
  WshSHell.Run url
Loop
urls.Close()


PAR 01-31-2012 02:20 PM

All I do is load everything in to excel and then copy past it all in text pad remove the "tab" save as html file..
If you know the path to the html file on your pc/laptop/mac you can set this as your home page if needed or a bookmark.


final html
<a href="http://www.site1.com">site1.com</a><br></br>
<a href="http://www.site1.com">site1.com</a><br></br>

in excel it just looks like
Row 1 Row 2 Row 3 Row 4 Row 5
<a href="http://www. site.com "> site.com </a><br><br/>
*spaces used in example in excel copy past = tabs*

for multi site testing I change the code so that it just loads 50 sites all on 1 page in Iframes and just test and scroll down to the next site..

Tom_PM 01-31-2012 03:01 PM

So many "test.txt"'s must be out there. When aliens come, they're going to think test.txt's rule the world, hehe.
Cool solutions.

AVS_Adult 01-31-2012 03:20 PM

Create a batch file with the URL's as followed:

start http://www.domain1.com
start http://www.domain2.com
start http://www.domain3.com
............
start http://www.domain100.com

Will open each URL in a separate tab in your default browser.

fris 01-31-2012 03:25 PM

Quote:

Originally Posted by AVS_Adult (Post 18724149)
Create a batch file with the URL's as followed:

start http://www.domain1.com
start http://www.domain2.com
start http://www.domain3.com
............
start http://www.domain100.com

Will open each URL in a separate tab in your default browser.

ya got a big list, so this one works loads in default in new tab

raymor 01-31-2012 03:26 PM

Just for fun, another way. You may know that Firefox can group bookmarks and you can open a whole group at once. You may also know Firefox stores it's bookmarks as a .html file. So, generate the html, add it to bookmarks.html, then open that bookmark group.

fris 01-31-2012 03:30 PM

ya the info is stored in a txt file not from bookmarks or anything

livexxx 01-31-2012 04:10 PM

firefox can save all open tabs in one go as a bookmark folder, then in the bookmarks folder you can also open them all in one go. "Open all in tabs"

V_RocKs 01-31-2012 04:39 PM

Open Firefox bookmark list. Notice the... brain fart... way it is written... then write something or just search and replace line breaks with needed code. format...

Then restart Firefox and go to bookmarks.. Open all in tabs...

Or google for convert text file to firefox bookmarks

geel 01-31-2012 04:58 PM

Send it to yourself by email.

livexxx 01-31-2012 04:58 PM

try Flem, imports txt/csv to firefox bookmarks, its a plugin
https://addons.mozilla.org/en-US/firefox/addon/flem/

u-Bob 01-31-2012 06:36 PM

perl :

Code:

open(INPUTFILE, "<urls.txt");
while(<INPUTFILE>)
 {
 my($line) = $_;
 chomp($line);
 system("start $line");
 }


fris 01-31-2012 08:21 PM

Quote:

Originally Posted by u-Bob (Post 18724525)
perl :

Code:

open(INPUTFILE, "<urls.txt");
while(<INPUTFILE>)
 {
 my($line) = $_;
 chomp($line);
 system("start $line");
 }


not on icq anymore?

cooldude7 01-31-2012 08:30 PM

i used previously this as a remote cron for my 500 cron jobs.,


Code:

#!/bin/bash

for id in $(cat /root/data/unames.txt);do
echo $id
curl http://blahblah.com/user/refresh/home
done

i remove some lines., but i guess you get the idea.,

uno 01-31-2012 09:17 PM

Uh, i just put them in a text file, open it in my browser and then click "Open Links in New Tabs".

That last Open Links in New Tabs may or may not be a feature of Tabs Mix Plus. And Linkification... another great plugin/extension

u-Bob 02-01-2012 06:34 AM

Quote:

Originally Posted by fris (Post 18724655)
not on icq anymore?

not on a regular basis.

just got your msg and replied.


All times are GMT -7. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123