This specifies how to hijack the searches on the partsregistry.
Base URL (visit):
http://parts.igem.org/cgi/partsdb/search.cgi
Query String Format:
http://parts.igem.org/cgi/partsdb/search.cgi?[nameTextInput]=[STRING];[nameSubmitButton]=Search
Example:
This url will do a text search for "gfp"
http://parts.igem.org/cgi/partsdb/search.cgi?searchfor1=gfp;searchfor=Search
[STRING] is the terms you want to search for (Don't put the square brackets)
nameTextInput
and nameSubmitButton
are defined by the markup on the partsregistry search page
#####Text Search:
nameTextInput = "searchfor1"
nameSubmitButton = "searchfor"
#####1000 Part Search
nameTextInput = "first_part"
nameSubmitButton = "search_from_to"
#####Subpart Search
nameTextInput = "part_list"
nameSubmitButton = "search_subparts"
#####Superpart Search
nameTextInput = "super_part_list"
nameSubmitButton = "search_superparts"
You can get XML data for a part with:
http://parts.igem.org/cgi/xml/part.cgi?part=[Part_Name]
For example:
http://parts.igem.org/cgi/xml/part.cgi?part=BBa_J70533