plugin help

Hi, I’m writing a “hello world” plugin to search databasebasketball.com. You input a last name in the search query and it will either return a list of basketball players w/ that last name, or the player’s main page if only one is found. Here’s the XML:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	
	<key>EngineUrl</key>
	<string>http://www.databasebasketball.com/plsearch.htm?name=_agentQuery_</string>
	<key>Identifier</key>
	<string>com.foo.databasebasketball.plugin</string>	
	<key>LinksEnd</key>
	<string>About HOF Monitor scores</string>
    <key>LinksStart</key>
    <string>fantasy/fantasylist.htm</string>
    <key>LinksNotMatching</key>
    <string>*teams*</string>
	<key>Name</key>
	<string>DatabaseBasketball</string>
	<key>Operators</key>    
	<integer>0</integer>
	<key>TextStart</key>
	<string>fantasy/fantasylist.htm</string>	
	<key>Version</key>
	<string>1.0</string>	
</dict>
</plist>

However, this is not working like I think it should, and I don’t know why.

If I input a search term that only gives one result (like “Drexler”), DA displays items in the Pages tab with “teams” in the URL–why?

Here’s an example of a “main” player page: http://www.databasebasketball.com/players/playerpage.htm?ilkid=DREXLCL01

Thanks in advance.

What version of DEVONagent are you using? On the latest version (2.0.2) this works like you’d expect. When searching for Drexler, I get 7 documents. In the Digest I see a nice diagram when I click on the “Drexler” topic, in the Pages I see no “teams” in the URLs and in the Log I see that it initially got 41 links.

I’m using 2.0.2. I also get 7 documents:

databasebasketball.com/teams … 031&tm=hou
databasebasketball.com/teams … 103&tm=hou
databasebasketball.com/playe … =DREXLCL01
databasebasketball.com/playe … =DrexlCl01
databasebasketball.com/teams … 103&tm=hou
databasebasketball.com/teams … 101&tm=hou
databasebasketball.com/playe … =DREXLCL01

Are these the 7 you get as well? You can see 4 of the 7 have “teams” in the URL…

thanks

This is my list of results (now there are 8), as you can see there are no links with “teams” in them. And I just copied your plist description and stuck it in the app’s Plugins folder.

  1. 1995-96 NBA All Star Game - BasketballReference.com
    Clyde Drexler HOU 19 11 5 8 0 0 - - - - 2 3 - - - -
    [www.databasebasketball.com/awards/allstarbox.htm?yr=1995&lg=N]

  2. databaseBasketball.com - NBA Basketball Statistics, Draft, Awards, and History
    Clyde Drexler 1992-93 Game Log
    [www.databasebasketball.com/players/playerlog.htm?yr=1992&ilkid=DREXLCL01]

  3. Clyde Drexler Bio Information, Past Stats, Playoff Stats, Statistics, History, and Awards
    nba.com/blazers/history/Lear … 31-41.html
    [www.databasebasketball.com/players/playerlinks.htm?ilkid=DREXLCL01]

  4. 1983 NBA Draft on Basketballreference.com
    14 POR Clyde Drexler Houston
    [www.databasebasketball.com/draft/draftyear.htm?yr=1983&lg=N]

  5. Portland Trailblazers (1970 - ) Draft History, Stats and more on Basketballreference.com
    1 Clyde Drexler Houston
    [www.databasebasketball.com/draft/draftteam.htm?tm=POR&yr=1983&lg=N]

  6. NBA Players who Attended University of Houston - Basketballreference.com
    Drexler, Clyde 1983-1997 HOF
    [www.databasebasketball.com/players/bycollege.htm?sch=University+of+Houston]

  7. Clyde Drexler Stats, Statistics and Fantasy News - RotoWire.com
    Drexler is considering a return from retirement and the Nuggets are high on his list of teams he’d like to play for the Denver…
    [www.rotowire.com/basketball/player.htm?id=1428]

  8. 1985-86 NBA All Star Game - BasketballReference.com
    Clyde Drexler POR 15 10 5 7 0 0 - - - - 4 4 - - - -
    [www.databasebasketball.com/awards/allstarbox.htm?yr=1985&lg=N]

Ahh, I figured it out–it was in the ‘settings’ pane–‘follow links’ was on. I guess I assumed DA would use my LinksNotMatching criteria, but it seems that stuff is disregarded after the initial search engine results.

Thanks for your help!