This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Internet & WWW

Monitor Web page changes with Specto

By Shashank Sharma on March 14, 2008 (4:00:00 PM)

Share    Print    Comments   

There's no dearth of Web feed readers for Linux that allow you to keep tabs on new postings on a Web site. But what if the Web site or page you're interested in doesn't provide a feed? Specto is a nifty little Python application that lets you monitor changes to static or dynamic pages. You can configure Specto to monitor changes to wiki pages, blog posts, forum threads, your email inbox, and even files and folders on your own system. An unobtrusive pop-up from its system tray icon informs you of all changes, so you don't have to hop around looking for updates.

Specto is available from the software repositories for most distributions, or you can install it from the compressed tarball if you want the most recent release. First explode the tarball with the tar zxvf specto-0.2.2.tar.gz command. Next, browse into the specto-0.2.2/ directory. You don't have to install Specto to begin using it; the command ./launch.sh launches Specto. But Fedora and Ubuntu users can respectively use the su -c "python setup.py install" or sudo python setup.py install command to install Specto.

Once installed, you can either launch Specto from the terminal with the command specto or from the Applications -> Accessories menu. Upon launch, Specto displays its Notifications window.

Specto refers to all targets that have to be monitored as watches. Before you begin adding watches that need to be monitored for updates, click Edit -> Preferences, and in the Preferences window click Always show the icon in the notification area. From this Preferences window, you can also configure Specto to play a sound when any watch is updated. You can use the Duration (in seconds) slider bar at the top of the Preferences window to specify the duration for which the update pop-up should be visible.

Clicking the Add button in the Notifications window opens the Add a Watch window. If you wish to monitor, for instance, Slashdot for updates, type Slashdot in the Name field and choose Website from the Watch Type drop-down list. You can specify the Refresh Interval, which indicates how often Specto should check for updates, in seconds, minutes, hours, or days. Next, fill in address of the web page in the URL field and specify the Error Margin. The error margin is especially important for sites like Slashdot where ads change often and may fool Specto into believing the content has been updated. By default, the error margin is 2%. An Error Margin of 0% means that every minor change is considered an update. Specto works by calculating the difference in file size after each check to determine if there has been an update. Click the Add button when you're done and Specto will begin watching the page for updates.

Now you can create a notification for your Gmail account. Click the Add button in the Notification window and in type Gmail in the Name field. Select Email from the Watch Type drop-down list. Specify a Refresh Interval and click the Gmail radio button. Enter your username and password in the respective fields and click Add. You can also monitor POP3 or IMAP accounts. For this, instead of clicking the Gmail radio button, click either POP3 or IMAP. You'll now have to fill in the Host information along with your username and password. And you can also click the Use SSL check box if that's how your account is configured. Click Add to finish setting up the notification.

You can similarly set watches for Files and Folders by selecting Files or Folders from the Watch Type drop-down list. You'll have to then click either File or the Folder radio button and specify the file or folder to watch.

To temorarily stop Specto from monitoring a particular watch, click the Active check box to the left of that watch in the Notification window. If you wish to edit the settings for any watch, click the watch and then click the Edit button on the bottom right of the window. A list of all watches you've set is maintained in the ~/.specto/watches.list file. Surprisingly, if you've set a watch for your email, you'll find that this plain text file also lists your username and password!

Except for this security flaw, Specto is ideal when you wish to monitor a wiki page or a blog post to see if anyone replies to your comment, or watch a forum thread without registering on the forum and subscribing for email notifications. You can even set a watch on a project's changelog or bugs or news page to remain informed.

Shashank Sharma specializes in writing about free and open source software for new users and moderates the Linux.com forum boards. He is the coauthor of Beginning Fedora, published by Apress.

Share    Print    Comments   

Comments

on Monitor Web page changes with Specto

Note: Comments are owned by the poster. We are not responsible for their content.

security in open source software

Posted by: Anonymous [ip: 206.248.171.113] on March 15, 2008 04:38 PM
I'm the author of Specto, and I'm still not convinced of the benefits of encrypting passwords (since the file is chmodded already) when the software that uses them is open source. This is like DRM in the way that "it can't work". Or you could provide me with convincing arguments that it can indeed work: http://code.google.com/p/specto/issues/detail?id=51

In the 0.3 dev branches, the passwords are scrambled (not my doing, but I guess I can leave it be). But I find this silly. Whatsmore, it even introduced a bug or two. What are your thoughts on the issue? I would be glad to hear them in that bug report.

#

Re: security in open source software

Posted by: Anonymous [ip: 66.7.202.175] on March 17, 2008 01:43 PM
I whole-heartedly agree with you. Pidgin has worded it very well: http://developer.pidgin.im/wiki/PlainTextPasswords -- scrambling passwords is a waste of time. If an attacker has read access to the file already, then it doesn't matter whether it's rot13-d. plaintext, or some custom solution. Your security has already been compromised.

Good work on the app! This is the first I've heard of it but I've been wishing I had something that did exactly this for a long time!

#

Re(1): security in open source software

Posted by: Anonymous [ip: 213.253.200.34] on March 17, 2008 02:23 PM
But it can prevent someone who is not adept at cracking encrypted passwords from simply getting your passwords and gaining access to your accounts. Therefore, passwords _should_ be encrypted.

#

Re(2): security in open source software

Posted by: Anonymous [ip: 66.7.202.175] on March 19, 2008 07:02 PM
If you're at that point, your security has already been trashed and you should consider the account compromised.

Password scrambling is useless.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya