Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language babelscript

Date:10/25/08
Author:Stefan Zipproth
URL:n/a
Comments:0
Info:http://www.babelscript.org
Score: (3.00 in 19 votes)
query 99 Bottles of Beer as {link}
load {link} as {foundpage}

loop
	find <a href="./{pagename}"> in {foundpage}
	load {link}{pagename} as {poempage}
	
	if {poempage} contains 50 bottles
	
		loop
			find <p>{line}</p> in {poempage}
			
			if {line} contains bottles
				striphtml {line}
				insert {line}{newline}{newline} into {poem}
			endif
		repeat
			
		print {poem}
		save {poem} as poem.txt
	 
		print {newline}Press [enter] to exit.
		pause
		quit
	
	endif
repeat

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: