Jump to content

Daily Comics - 5x faster loading!


Achilles
 Share

Recommended Posts

  • Replies 117
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

http://www.xkcd.com/

Func _GetXkcdLink()
    $RSS = "http://www.xkcd.com/rss.xml"
    $RSSSource = _INetGetSource($RSS)
    $Items = StringRegExp($RSSSource, "(?i)(?s)<item>.*?</item>", 3)
    $Count = UBound($Items)
    $Dummy = _StringBetween($Items[0], '&lt;img +src="', '"')
    $Link = $Dummy[0]
    Return $Link
EndFunc   ;==>_GetXkcdLink

untested but should work...

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

right, sorry...

Func _GetXkcdLink()
    $RSS = "http://www.xkcd.com/rss.xml"
    $RSSSource = _INetGetSource($RSS)
    $Items = StringRegExp($RSSSource, "(?i)(?s)<item>.*?</item>", 3)
    $Count = UBound($Items)
    $Dummy = _StringBetween($Items[0], '&lt;img src="', '"')
    $Link = $Dummy[0]
    Return $Link
EndFunc   ;==>_GetXkcdLink

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

right, sorry...

Func _GetXkcdLink()
    $RSS = "http://www.xkcd.com/rss.xml"
    $RSSSource = _INetGetSource($RSS)
    $Items = StringRegExp($RSSSource, "(?i)(?s)<item>.*?</item>", 3)
    $Count = UBound($Items)
    $Dummy = _StringBetween($Items[0], '&lt;img src="', '"')
    $Link = $Dummy[0]
    Return $Link
EndFunc   ;==>_GetXkcdLink
Sweet, that looks like it will work perfectly. As soon as I get my computer recustomized (I just reinstalled Windows) I'll update this.
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

To repost my earlier post in this thread: (edited to grab today's date...)

I'd love to see Achewood. (Note that Achewood is often very rude and crass. View at your own peril)

The URL for the daily comic is in this format. http://achewood.com/comic.php?date=11302007 But I'm not sure of the actual image URL format. The image is a .gif, but I don't know enough about PHP to know how to derive the actual image address.

Sometimes the comic is not updated daily. There are often two to three day gaps in comics.

If you would prefer not to add that one due to content, how about Penny Arcade?

http://www.penny-arcade.com/images/2007/20071129.jpg

Link to comment
Share on other sites

Updated

Includes xkcd

I really like this, thank you Piano Man. :) :)

Edit: You should change the $DownloadLocation = "C:\" to @HomeDrive. @HomeDrive&"\"

Your welcome and I changed it to @HomeDrive &'\' like you suggested.. thanks

Thanks again to theguy0000 for that link.

@HeffeD: I'll look into those two, probably tomorrow though, I should be studying for an AP Bio test I have tomorrow... ^_^

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

All it shows is a tiny little box for me, with a button, that a click, and does nothing.

Well, internet access is required, but since you're posting on a forum I'll assume you have that.

Does it go through the progressbar where it should download the 5 pictures? It should take a few seconds... While the little box, as you call it, is open, check your @Homedrive to see if there have been any comics downloaded there.

Let me know what happens...

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...