Autoblog blogger with popular tags

imdon

Registered Member
Joined
Feb 6, 2009
Messages
50
Reaction score
39
1- Login to you Blogger.com Account and create a new blog.

2- Then Click Settings > Email and create the email which is shown beside Mail-to-Blogger Address. Your email will be like this [email protected]

3- Just Below this email setting, Click at Publish emails immediately

Ok Step 1 is DONE.




<?php
$myFile = "tags.txt";
$fh = fopen($myFile, 'r');
$t = fread($fh, filesize($myFile));
$p = explode(",", $t);
$n="";
for ( $counter = 1; $counter <= 5; $counter += 1)
{
$a=rand(1, 1000);
$n=$n." ".$p[$a];
}
$m="";
for ( $c = 1; $c <= 50; $c += 1)
{
$b=rand(1, 1000);
$m=$m." ".$p[$b];
}

$m=$m." "."replace this text with some message that u want on every post";
$to = "your-blogger-mail @ blogger . com";
mail($to,$n,$m);
echo "Posted Message";
?>


After replacing necessary code in the above script
upload above script in any of your site that has mail() enabled and allows file
reading and writhing and allows you to setup cron jobs.Save the above file by
name "something.php" now in same folder create a file tags.txt and write 1000
popular tags seperated by comma in tags.txt eg.

free sms,free downlod,free,torrents,movie,............other tags

now set up a cron job to run "something.php" periodically and you will get
random posts in your blogger account.


I don't know if above method can be successful or not
I have not tried this with any of my blogs but i have made the above script so

i wanted to share that.If you try this then plz. share your experience here.
I may write some more code to autoupdate tags.txt file with new tags.
i May get new popular tags from google trends.

You may use x10hosting . com to host the above script for free x10hosting. com
has all the things required for this script and is free as well.There are many
such free hosts if your are familiar with any other free host then plz. post it
here.

Plz. don't hesitate to improve above code and to give your suggestions.You and
i can together make something new and free.

I won't be able to reply quickly as i will be busy with some other works for
some days so plz. don't mind but do post your replies here.

plz. reply for improvements
 
Last edited:
i have no idea what this means but....WOW looks GOOD!
 
i have no idea what this means but....WOW looks GOOD!

it can help you to create posts for your blogger account .
Posts will be full of popular random tags and you may add some url or other text at botteom of each post.
 
here is a site that may guide you to set up cron jobs

http://www.webmasters-central.com/t/cron.shtml

Cron is an automatic task machine. You will use it on your Unix or Linux operating systems for doing some tasks at specific intervals with out your intervention every time. You set the clock and forget. The cron daemon runs the work for you.
 
all the php script is doing is posting tags from a range of 1 to 50 tags per post to blogger. pls tell me how this is gonna be helpful? u'll have no real content, just 50 random words per post....
 
yes, it will create a post that will have a title full of random powerfull tags and will have content that too will have random keywords if we may get those keywords from google trends(this can be done with little more code) then we may get visitors to our blog . And i think that the posts will be regarded as unique(may be).Posts of blogger are indexed @ google very quickly so by posting such post @ blogger we may get good amount of VISITORS.

some of my blogger blogs are very freq. crawled by google and every new post is indexed within 5-10 mins. if bove script is used in one such blog then there are chances that it may give us some profit.

I AM NOT SURE that " this is gonna be hepful" or not.

but i wanted to share this and to try to make it helpful.

:o
 
I still feel confused with how to set up your script, could you pls provide step by step to set up this script? It seems that you have to do with PHP code and Unix, Linus, wright?
 
here is a guide to setup the script @ x10hosting. com

1.register a free hosting account at http://x10hosting.com/
2.now login with you user name and pass

3.upload above script as "abc.php"
4.create a file tags.txt that has about 1000 popular tags seperated by comma
5.upload tags.txt @ ur site
6.set up a cron job from ur web admin control pannel to run abc.php


i know that the guide could be better
 
its good that shared the script...i'm gonna give it a try...but i really doubt it would work...cause its just nonsense thats gonna be posted...a new blog may not be indexed by google....old ones, well dont know...
 
plz. try it and tell how can we improve it.

Plz note that i have seen that several blogs with "nonsense" content get good traffic.I am sure if we update tags.txt from trends we may get profit
 
If you could make it go away and find rss feeds/articles/whatever with the tags you specified and then post that, then it would be interesting :)
 
Well i was trying to do similar thing.
Remember I am new to this, so plz. be kind all of you. hee heee:biggthump

i have written some code to extract data from rss feed of google trends.
But that isn't working properly

here is the code i wanted to display no. 1 google trend currently

<?php
$c=file_get_contents('http://www.google.com/trends/hottrends/atom/hourly');
$e=strpos($c,"</a></span>");
$s=strpos($c,"X/">");
$nea = substr($c,$s,$e-$s);
echo $nea;
?>

it is't displaying anything
can anyone plz. help me to correct this error
 
Last edited:
ok that was a small mistake i have now corrected that myself

Here is a php code that reads data from google trends feed and write most popular trend in a file abc.txt this code may be used to update tags.txt file that is used to generate posts.

PHP:
<?php
$c=file_get_contents('http://www.google.com/trends/hottrends/atom/hourly'); 
$e=strpos($c,'</a></span>');
$s=strpos($c,'?q=');
$nea = substr($c,$s,($e-$s)); 
$s=strpos($nea,'>');
$nea = substr($nea,$s+1); 
$F = "abc.txt";
$fh = fopen($F, 'w');
fwrite($fh, $nea);
fclose($fh);
echo "updated abc.txt";
?>

using similar code we may extract data from blogger wordpress etc. feeds.
And then we may send them as mail using mail() function and this will give us something similar to auloblog wordpress plugin.

But i want to update tags.txt file to gererate keyword rich posts about trends.These posts will look meaningless but i think that they may generate good traffic.


Plz. reply.
I am going to make above code better i will soon be using this code with 1 of my blog.
 
And now i have completed the code that can update tags.txt with google trends So if you set a cron job for this file and for "mail.php" then you will get new content to your blogger blog automatically.

PHP:
<?php
$F = "tags.txt";
$fh = fopen($F, 'w');
$c=file_get_contents('http://www.google.com/trends/hottrends/atom/hourly'); 
for($a=1;$a<100;$a=$a+1)
{$e=strpos($c,'</a></span>');
$s=strpos($c,'?q=');
$nea = substr($c,$s,($e-$s)); 
$s=strpos($nea,'>');
$nea = substr($nea,$s+1); fwrite($fh, $nea.",");echo "updated abc.txt";
$c=substr($c,$e+11); 
}
fclose($fh);
?>

If u have any ques about using these code then plz. ask i am able to use them .
 
Got an account at x10. Is "basic" PHP OK or do I need to upgrade to intermediate or advance?
 
thank for your sharing. can you make a plugin for wordpress about post to email ?. It will great & make unique.
 
@imdon : Hi there! Just a question. Why would you want to have relevant tags if the post itself is irrelevant? It is a nice try but I think you should focus more on getting relevant posts instead of tags.

Also if don't know RegExp then take a look. You will know what I mean ;) If you need help with that let me know...
 
@kan kan
do u want
Wordpress post via email
For wordpress version less than 2.3 , Go to Options > writing, and for greater than 2.3, Go to settings > writing
What you have to do is create an email account with pop3 support
You can see the heading "Post via e-mail" there.
Enter your email server (by replacing mail.example.com)
Enter your pop3 port. (110 by default)
Enter your email login and password.
Choose a category to for the email entry posts
Finally Press update option Button
What you have done above is only the settings. For grabbing or pulling the content from email, you need to call/trigger an url.
That url is: http://yourblogdomain/wordpressinstalldir/wp-mail.php
Either you can call it manually. Or you can set up a cron job for that url by call the url using wget or like functions

psychoul
what is RegExp ??????????? plz explain
 
Back
Top