Hey, questions about grabbing rss feeds :)

big shoes 8

Registered Member
Joined
Apr 18, 2009
Messages
68
Reaction score
10
Hey, well i have a site that's using a wordpress blog. I want to grab other peoples posts through their rss feeds like an auto blog, could anyone suggest to me a plugin? I have one atm but i want to know what you guys think.

I'm also wondering, one of the websites I'm trying to grab posts from only displays part of his posts in his rss feed. Is there any way to be able to get the full post?

Thanks
 
I personally like WP-O-Matic.

Do a search here for "autoblog" and you will find a plethora of information.

As for partial RSS feeds, you can write a bot that grabs the HTML rather than the RSS, and parses it. Then you can have said bot run periodically under cron and feed the parsed results to WP.

Or ... there is someone on one of the Autoblog threads who is selling a plug-in that does the same thing. The name of the plugin might be "autoblogger", but you will need to confirm that.
 
I personally like WP-O-Matic.

Do a search here for "autoblog" and you will find a plethora of information.

As for partial RSS feeds, you can write a bot that grabs the HTML rather than the RSS, and parses it. Then you can have said bot run periodically under cron and feed the parsed results to WP.

Or ... there is someone on one of the Autoblog threads who is selling a plug-in that does the same thing. The name of the plugin might be "autoblogger", but you will need to confirm that.

that would be a sickly swell script...
 
Would it? Do you think i could make the money back?
 
I personally like WP-O-Matic.

Do a search here for "autoblog" and you will find a plethora of information.

As for partial RSS feeds, you can write a bot that grabs the HTML rather than the RSS, and parses it. Then you can have said bot run periodically under cron and feed the parsed results to WP.

Or ... there is someone on one of the Autoblog threads who is selling a plug-in that does the same thing. The name of the plugin might be "autoblogger", but you will need to confirm that.

it would be really cool if plugin like that really exist...I'm using autoblogged and feedwordpress but as far as i know it can't scrape full content...
 
feedwordpress will be easisest for you for start
 
ok, well i have feedwordpress and blogslammer, so as soon as the guy who sold me blogslammer answers a few of my questions ill be good to go and start my first autoblog!
 
it would be really cool if plugin like that really exist...I'm using autoblogged and feedwordpress but as far as i know it can't scrape full content...

Here's what I have so far:

Code:
#!/bin/sh
# This is a pretty evil script that's meant for 
# illustrative purposes only.
# Note that the input feed is hard-coded, and the 
# parsing conditions will 
# only work for that feed in particular.
# 
# No proxies are being used, but curl and wget do 
# have proxy capabilities.
# If a variation of this script is being heavily used, 
# you should probably 
# take advantage of those capabilities so as to a
# void detection --- the 
# script could set off alarm bells to the 
# attentive webmaster.
#

# Get the URLs from the feed and put them in a 
# file called urls.lst --- 
# these are the URLs of the full articles.
curl http://feeds2.feedburner.com/eldis-manuals?format=html\
 2>/dev/null \
grep 'a href' | cut -f 2 -d \" | sort -u | \
grep feedproxy > urls.lst

# Make sure we only process new URLs --- already 
# processed URLs should 
# be listed in master_urls.lst; new ones will go to
# new_urls.lst
comm -13 master_urls.lst urls.lst > new_urls.lst

##############################################################
##############################################################
##############################################################

# Use wget to scrape the content from each of the new 
# urls from the feed
#
# The wget -i option causes wget to iterate through all 
# the URLs listed in the
# given file, here new_urls.lst
#
# The --output-document=scraped_contents.txt option 
# sends all the contents of 
# each of the URLs to a file called scraped_contents.txt 
# --- you can 
# call it something different if you want ...
#
# The --random-wait option causes wget to wait a 
# randomly chosen period of time
# before trying to get its next file. This may help 
# keep your 
# scraping undetected.
wget -i new_urls.lst --output-document=scraped_contents.txt\
 --random-wait

##############################################################
##############################################################
##############################################################

# Get the Title of each new posting
# TODO - probably with a call to a Perl script that uses 
#        HTML::TreeBuilder

# Get the full text of each new posting.
# TODO - probably with a call to a Perl script that uses 
#        HTML::TreeBuilder

# Insert into your WP database
# TODO - quickie MySQL connection, insert appropriate 
#        data to appropriate WP table(s), MySQL disconnect


##############################################################
##############################################################
##############################################################
# Remember to append the new_urls.lst to the 
# master_urls.lst for next time
cat new_urls.lst >> master_urls.lst

# For the comm command to work, the contents of both 
# files involved must be
# sorted and have no duplicate entries
sort -u master_urls.lst > temp_urls.lst
mv temp_urls.lst master_urls.lst

exit 0

I think I went down the wrong track yesterday trying out the HTML::Parser. Reading Hack #19 in "Spidering Hacks", it looks like HTML::TreeBuilder would be a better package for this sort of thing. Easier to deal with.

The unfortunate thing here is that each feed would require some custom coding. But these are things that you could use dependency injection with and put into some sort of feeds.config file --- the feeds shouldn't really be hard-coded like I did here ...

Also, once this sort of script is done, you just put it in cron and have it run every couple of days or so, and you're on autopilot.

BTW, that's not my feed. :-)
 
Use either autoblogged or wp-o-matic plugins to get content from feeds. If you want full articles, then look at blogspot feeds - they usually have full article RSS feeds.
 
i always get full article from partial rss feed using yahoo pipes and combine the output from pipes with feedburner. it works either with wpomatc & feedwp.
I found the pipes in this forum ,you may search it..and edit the source of rss based on what i need.
 
same as najiz,
use yahoo pipes to customize your rss. there is a learning curve but its not too difficult.
 
I am using autoblogged, it uses too much CPU (around 60~80% of CPU), and I got warning from hosting engineer =P
Anyway, autoblogged can grab full content by changing %excerpt% to %content%
 
By default, autoblogged is feeding excerpt only. If you want to get full content, you have to change the code inside feed settings -> advance settings -> post templates.
Find the %excerpt% , and change it to %content%
 
don't use caffeinated content unless you want you post to look like someone wrote them on crack. it use to be a great plugin, but not any more.
 
i always get full article from partial rss feed using yahoo pipes and combine the output from pipes with feedburner. it works either with wpomatc & feedwp.
I found the pipes in this forum ,you may search it..and edit the source of rss based on what i need.


Can we rewrite the posts using yahoo pipe?


Translate to chinese and retranslate to english sort of thing?
 
Back
Top