All pastes #402296 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-19 20:47 UTC
rendered paste body
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# HTML Parser Variables That Are Mandatory (A.K.A Need to be in this file for it to work :P )

#	name				Trigger name (also the name in .properties file)
#	baseurl				The base url of the sit you want to connect to
#	filters				Strings to remove from the input text to make a better search string
#	sections			Sections on which the event listener to search for (Even if you not using event listener, just leave blank do not uncomment)
#	exclude				Strings to exclude when doing an event listener to not run the search (same as sections, leave blank if not being used)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# HTML Parser Variables That Are Optional

#	searchurl			If you need to use a search page to find the page you are looking for (ie Game/Imdb,Tv)
#	nomatch				The string in the html file if there is no match to the search string you inputted
#	match				The string in the html file if there Is a match to the search string you inputted
#	match.start			The string to start the parsing to retrive the match found in the search html
#	match.end			The string to end the parrsing to retive the match found in the search html (between match.start and match.end is the url you want to load from the search page)

#	recursiveurl			A Url to add onto the end of found search page if more info is needed (ie Imdb/Game)

#	debug				To output the text of the html page(s) into the drftpd.log file (set to true)

#	datedurl			This will add on a date to the baseurl before it connects to the page.  This works for tonight/tomorrow so pages can be parsed easilier.  Must have value in datedurl.start
#	datedurl.start			This formats the date so it can be used in the page search.
#	datedurl.day.increment		This increments the date by day (used in tommorow to grab the next day)
#	datedurl.hour.increment		This increments the date by hour (used in tommorow to grab the next day)



#	dated.start			This searches on the page for a specific date (date from computer time) Use standard date format for finding the date on the page (This is used in tomorrow/tonight to goto the corect date we want to parse from)
#	dated.day.increment		This increments the date by day (used in tommorow to grab the next day)
#	dated.hour.increment		This increments the date by hour (used in tommorow to grab the next day)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# Different Parsing Options, Replace X with the next number, make sure they increment the same way (like everything else in drftpd) (ie 1,2,3; NOT 1,3,4)

# Parsing Options Which are Mandatory

#	parse.X.name			The name you want to set this parse (Will be the same name used in .properties)
#	parse.X.beginparse		The Begining String to parse from in the data off the HTML page
#	parse.X.endparse		The Ending String to parse from in the data off the HTML page to create the new string between beginparse/endparse

#	parse.X.beginparse.index	Start the parsing from the X occurence of the parse (If blank the first occurence is used)
#	parse.X.endparse.index		End at X occurence of the parse (If blank the first occurence is used)


# Parsing Options Which are Optional

#	parse.X.substring.begin		After parseing the section you want, you can do another substring parse within that first parse. (NOTE, if parse.X.substring.end is not used, it will parse from the parse.X.substring.begin and goto the end of the string)
#	parse.X.substring.end		If using this option, if will parse out from parse.X.substring.begin to this part in the string

#	parse.X.removebefore		Removes defined string before the conversion to string (IE: Before it removes the <br>,<td>,<table>, etc in the string)
#	parse.X.removeafter		Removes defined string after the conversion to string takes place (IE, (,), etc)

#	parse.X.removemiddle		Removes defined string after after the parse but before the html to text conversion has begun.  (IE, (,), etc)

		

#	parse.X.replacebefore		Replaces defined string(s) before conversion process. Use a ; to seperate between items, This is recurisve so you can add as many replace sections as you want (IE <br>;@@;<tr>;_;<table>;TBL)
#	parse.X.replaceeafter		Replaces defined string(s) after conversion process.  Use a ; to seperate between items, This is also recursive.

#	parse.X.replaceeafter.first	Replaces defined string(s) after conversion process.  This finds the first occurence of X and replaces and then tries again.  This is done for parsing tabled html pages.  Use a ; to seperate between items, This is also recursive.

#	parse.X.replacemiddle		Replaces a defined string(s) after parse but before the html to text conversion has begun.  Use a ; to seperate between items, This is also recursive.

#	parse.X.replaceemiddle.first	Replaces defined string(s) after parse but before the html to text conversion process.  This finds the first occurence of X and replaces and then tries again.  This is done for parsing tabled html pages.  Use a ; to seperate between items, This is also recursive.

#	parse.X.recursive		If recursiveurl is used, this parse option will only be used on that recursiveurl page (IE. Imdb,Game)

#	parse.X.multiparse		This is used if you want to parse alot of different info, put it on seperate lines, but only use 1 variable for output because the info is dynamic (ie. tonight,tomorrow,top10, etc)  How this works is it takes the string between parse.X.beginparse and parse.X.endparse, then recursivly goes through that section of the string and returns each substring that has the parse.X.multiparse variable in it,  Each substring is saved to a new line on the output.




# NOTE:  With the parsing names, you ARE allowed to have the same name more then once.  It will return the first found options. (IE. Gameinfo has 2 different types of pages, if the first page is found it returns top half of that config, and if they arn't found, it continues to the end half of the config)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------

name=comingsoon
filters=
exclude=

baseurl=http://www.movietome.com/

# ---------- Parsing Options

parse.1.name=title
parse.1.beginparse=<b>Upcoming movies:</b><br>
parse.1.endparse=<br><br><br>
parse.1.multiparse=<br>