Still have writers block? The last post less than useless? What do you do now? Well, you can cheat.
Copy and paste the following code and save it in a php file. Upload it to your server then access the script by typing:
http://www.yoursite.com/whatyoucalledthephpfile.php?keyword=yourkeyword.
Replace yourkeyword with a keyword of your choice, and the script will automagically write an article for you. Refresh, and it will change the article! If you want more than 1 keyword, put them in quotes, like this: "more than one keyword"
The script works by scraping content from google blogg search rss feeds.
<?php if (!empty($_GET['keyword'])) { $keyword=$_GET['keyword']; $xmlContent = file_get_contents('http://blogsearch.google.com/blogsearch_feeds?hl=en&q='.urlencode($keyword).'&ie=utf-8&num=10&output=rss'); $domdoc = new DOMDocument(); $domdoc->loadXML($xmlContent); $items = $domdoc->getElementsByTagName('item'); $contentString = ''; foreach($items as $item){ $description = $item->getElementsByTagName('description'); $contentString .= preg_replace('/[^\w\s\.]/', '', strip_tags($description->item(0)->nodeValue)); } $arrSentences = preg_split('/[\.\?\!\:]/', $contentString, -1, PREG_SPLIT_NO_EMPTY); foreach($arrSentences as $key => $sentence){ if(strlen($sentence) < 20){ unset($arrSentences[$key]); }else{ $arrSentences[$key] = trim($arrSentences[$key]); } } shuffle($arrSentences); echo implode('. ', $arrSentences).".\n"; }else{ echo "Usage: ".$argv[0]." [keyword]"; } ?>
Warning!
This is ever so slightly black hat. Do not actually use the article on your blog if you care about your readers. Google will love all the lovely text, but your readers will think you have lost the plot and never come back.
Here is an example article the script created when I used keywords "writing inspiration":
Writing Inspiration from Jayson Stark. Dorchester Authors Share Their Writing Inspiration And Their Books. Just a change of pace or a different location can offer writing inspiration. Where do you find your writing inspiration Share this on LinkedIn Share this on del. 31 ways to find Inspiration for Your Writing A list of ideas that help with writing inspiration from Write to Done. A day trip to a local landmark or even housesitting for a friend can recharge your batteries and offer subject matter andor writing ideas. Happy Monday from The Texas Sweethearts From a recent writein at Spiderhouse Cafe Texas Sweethearts PJ Hoover and Jessica Lee Anderson and special guest E. Wednesday morning he fielded them as he spoke to a room crammed with Penn State journalism students. Just wanted to post a link over to Musetracks where 16 Dorchester authors including Christie Craig who stopped by yesterday. Kristin Anderson dish a bit on some food related writing thoughts. Jayson Stark baseball writer for ESPN. Its really nothing I havent been doing as a writer for years and coaching. Ever since Johansons book came out a couple of years ago Ive been more conscious of finding the intersection of niches as a source of writing inspiration. These are just ways to get ideas and inspiration. Hats as Writing Inspiration. us Digg this Post on Google Buzz Share this on Reddit Stumble upon something good Share it on StumbleUpon Tweet This. When you write you want to educate. If you do anything today please watch this video Thank you DH for sharing this with me. com usually asks the questions. Posted by Colleen Thompson at 741 AM. It will take a little more than a minute of your time and may make a huge difference to how you tackle your day. When you see a beautiful woman in a beautiful hat you know shes not afraid to be seen says Rehn Dudukgian a hat designer from Los Angeles and founder of Bijou Van Ness. How Writing Can be Like Hot Sex 17 Hot Tips How to reach potential for mindblowing writing possibly.
Nice, eh?
Barcelona Property
var jcomments=new JComments(20, 'com_content','http://wetravel2.org/index.php?option=com_jcomments&tmpl=component');
jcomments.setList('comments-list');
Featured Travel sites
Other articles you may be interested in
- Travel Blog Directory - submit your site!
- Tips for promoting a Travel Blog
- New spin on guest posts
- Retweet this to get a pr4 travel link
- A couple of travel sites accepting guest posts
- Why I use Joomla for blogging
- Your 7 night Ibiza 2010 clubbing plan
- The Biggest Mistake Most Travel Blogs Make
- The worst article about writers block you will ever read
- The worst guest post I have ever been sent
- What to focus on when promoting your blog
- The Falkland Islands
- Discovering Canada
- Things I hate about bloggers and blogging:
- Stop copying other bloggers!
- The Safest World Cities for Tourists
- Why posts about blogging will not get you rich
- New facebook features blah blah blah
- Support Passports With Purpose
- A visit to Sin City
- Top 5 activities for a great hen weekend in Barcelona.
- 5 Reasons to Drive Yourself to the Airport
- The best places to shop in Melbourne
- What to do before heading off on a backpacking adventure
- Weekend in Las Vegas
- 4 Free Wi-Fi Finder Apps for the Digital Vagabond
- 3 of the Best Places for a Family Safari in Africa
- Dirt Cheap Airline Tickets
- Why York has Something For Everyone
- 5 Good Reasons to Visit Lanzarote
- What Makes a Great Melbourne Experience?
- Where is the Best Place to Pop the Question, Unconventionally
- 5 Ways to prepare for your Ski Holiday
- Learning a foreign language – how I did it
Like this article? Please share
Latest reactions
- Hidden, Unspoilt Tourist Place...
Nice post. I read this article. I think this is qu... More...
15.05.12 09:23 - Fiji Travel Information and Bo...
Thanks for the Fiji information. relay very helpfu... More...
01.05.12 11:06 - The worst guest post I have ev...
Nice one! The golden rule for writing a guest post... More...
30.04.12 13:14 - The magical Lake District & Cu...
I agree, the Lake District is a wonderful destinat... More...
25.04.12 14:52 - 5 Must-See Attractions in Majo...
nice stuff about see most beautiful attractions in... More...
23.04.12 04:21





