Add bulk domain name to google search URL
Moderator: General Moderators
-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
Add bulk domain name to google search URL
Hi everyone,
I am a PHP novice but would like to write a script to do the following:
1. text box where I can paste a list of domain names, 1 name per line
2. add each domain name in the list to a Google search string
example:
domain line 1
http://www.google.com/search?q=acorndomains.co.uk
domain line 2
http://www.google.com/search?q=pcpets.co.uk
after the search I get a list of the names and how many times they appear in Google
Can anyone help me please?
I have hunted high and low for a script that already does this without success
Many thanks, nice forum!
I am a PHP novice but would like to write a script to do the following:
1. text box where I can paste a list of domain names, 1 name per line
2. add each domain name in the list to a Google search string
example:
domain line 1
http://www.google.com/search?q=acorndomains.co.uk
domain line 2
http://www.google.com/search?q=pcpets.co.uk
after the search I get a list of the names and how many times they appear in Google
Can anyone help me please?
I have hunted high and low for a script that already does this without success
Many thanks, nice forum!
-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
This site does something similar using a PHP file but perhaps there is more under the covers.
Does it help?
http://www.startname.com/linkpop/index.php
I can use Delphi a little also but would prefer a web script based solution rather than an application
Does it help?
http://www.startname.com/linkpop/index.php
I can use Delphi a little also but would prefer a web script based solution rather than an application
-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
Well to make it easier have a look at
file_get_contents
and
preg_match_all.
Seen as you are a newcomer these would be best for your project. Getting us to write your code is an educative lesson lost for yourself.
file_get_contents
and
preg_match_all.
Seen as you are a newcomer these would be best for your project. Getting us to write your code is an educative lesson lost for yourself.
-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
Joe,
I am not trying to just get you to do the all work - I am keen to learn just wanted a head start thats all. At this point I find it easier to read back code and understand it than to write it in the first place.
The functions you posted I think are what I need to use to read the search page results, correct?
How do I get a text box (to paste the Domains into) and state the URL to pass each domain onto the end of, this is the starting point.
Many thanks for your persistance
I am not trying to just get you to do the all work - I am keen to learn just wanted a head start thats all. At this point I find it easier to read back code and understand it than to write it in the first place.
The functions you posted I think are what I need to use to read the search page results, correct?
How do I get a text box (to paste the Domains into) and state the URL to pass each domain onto the end of, this is the starting point.
Many thanks for your persistance
Well your now asking how to make a textbox which makes me think you should be learning more html rather than php.
The above html gives you a textarea. Then you are required to make a backend php script which uses $_POST[] to obtain the variable values from the previous page.
Code: Select all
<textarea cols="10" rows="4" name="domain"></textarea>-
AcornDomains.co.uk
- Forum Newbie
- Posts: 8
- Joined: Fri Aug 06, 2004 6:48 pm
well say the textarea had the name "domain" like the example given above, then the backend would retrieve this using:
try this out:
Remember the form must use the "post" action
Code: Select all
$_POSTї'domain'];Code: Select all
<?php
$var = $_POSTї'domain'];
print($var);
?>