School is comming to a close, and I'm starting to become overloaded with work. Meaning that I wont have time to check the twenty or so forums I belong to.
I've decided to create a perl script that would go to each and every site, list new posts, alert me to PMs, and then write it into a .txt file.
My question is: how would I go about this? I know how I would write information to a file, but I'm inexperianced with CGI :o. I'm not actually sure of where to start from.
Could anyone point me in a direction?
now, how do I...
Started by suicidal pencil, May 15 2008 07:20 AM
11 replies to this topic
#1
Posted 15 May 2008 - 07:20 AM
Programming is an art form. Everyone can program, but few can do it right.
|
|
|
#2
Posted 15 May 2008 - 07:28 AM
It can be hard to make such script, because forums are made differently and the structure of the underlying HTML is not necessarily the same from forum to forum. I would instead concentrating on the forums providing RSS feeds. In that way you'll only have to care about a single structure.
If you don't want to make a RSS parser yourself, you can use an already existing one. You may want to look into XML::RSS and eventually XML::RSS::Parser::Lite if you want a simpler interface.
If you don't want to make a RSS parser yourself, you can use an already existing one. You may want to look into XML::RSS and eventually XML::RSS::Parser::Lite if you want a simpler interface.
#3
Posted 15 May 2008 - 08:57 AM
There are four sites that I'm worried about.
z11.invisionfree.com/conflagrationV_M_G
z14.invisionfree.com/playr_forums
The Defectors Clan • Index page
and this one.
I know that forums.defectorsclan.com uses PHP, but I'm not entirely sure about this one (I think PHP again...not sure though), and the zx.invisionfree.com/xxxxxx sites are completly unknown to me.
z11.invisionfree.com/conflagrationV_M_G
z14.invisionfree.com/playr_forums
The Defectors Clan • Index page
and this one.
I know that forums.defectorsclan.com uses PHP, but I'm not entirely sure about this one (I think PHP again...not sure though), and the zx.invisionfree.com/xxxxxx sites are completly unknown to me.
Programming is an art form. Everyone can program, but few can do it right.
#4
Guest_Jordan_*
Posted 15 May 2008 - 11:04 AM
Guest_Jordan_*
Most forums have an RSS feed. I'm betting these 3 do and you can find information about this one here: http://forum.codecal...-rss-feeds.html
Once you figure out the RSS feeds you can then use Perl to fetch the XML and write them to a file. Even better, iGoogle will do this for you as will Outlook and several other clients.
Once you figure out the RSS feeds you can then use Perl to fetch the XML and write them to a file. Even better, iGoogle will do this for you as will Outlook and several other clients.
#5
Posted 15 May 2008 - 11:38 AM
I'm making this mostly because I think it would be a wicked thing if I achieve it ;)...but it would also help me decide if I need to make an appearance on a particular site.
Programming is an art form. Everyone can program, but few can do it right.
#6
Posted 15 May 2008 - 08:57 PM
"suicidal pencil" said:
There are four sites that I'm worried about.
http://forum.codecal...l.php?type=RSS2
Latest posts from “The Defectors Clan†board.
I wasn't even able to open the other sites, so I can't say whether they have or not.
#7
Posted 16 May 2008 - 03:12 AM
Programming is an art form. Everyone can program, but few can do it right.
#8
Posted 16 May 2008 - 04:53 AM
It seems like they don't have RSS feeds, at least I haven't found them.
#9
Guest_Jordan_*
Posted 16 May 2008 - 04:55 AM
Guest_Jordan_*
Couldn't find them either. I noticed the first one was Invision Power Board. They would need to install an addon to enable the RSS feed feature.
#10
Posted 17 May 2008 - 05:08 AM
What's wrong with just using the forum's email notification features? Most sites frown on "page scraping"....which is what it sounds like you're trying to do.
Visit My Google Group Here: Web Development Innovation
#11
Posted 17 May 2008 - 08:24 AM
I'm doing this mostly for the convenience, but I'm also doing it to teach myself more perl.
Programming is an art form. Everyone can program, but few can do it right.
#12
Posted 19 July 2008 - 11:41 AM
fahlyn said:
What's wrong with just using the forum's email notification features? Most sites frown on "page scraping"....which is what it sounds like you're trying to do.
That sounds like it would do the job just fine.


Sign In
Create Account


Back to top









