Created
March 29, 2017 01:54
-
-
Save fernandez14/5c83e1148d3fc505ee411b3418916956 to your computer and use it in GitHub Desktop.
Spider-srv API calls examples.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": {"use": "text", "value": "h1 span", "filters": ["trim-space"]}, | |
"screen": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "filters": ["trim-space"]}, | |
"os": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 1, "filters": ["trim-space"]}, | |
"camera": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 2, "filters": ["trim-space"]}, | |
"storage": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 3, "filters": ["trim-space"]}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
micro query sg.micro.srv.spider Spider.TrackSitemap '{ | |
"from": "https://data.domain/motorcycles", | |
"name": "Motorcycles", | |
"depth": 4, | |
"patterns": { | |
"home": "^https://data\\.domain/motorcycles/?$", | |
"motorcycle-brand": "^https://data\\.domain/motorcycles/([[:alnum:]\\-]+)$", | |
"motorcycle": "^https://data\\.domain/motorcycles/([[:alnum:]\\-]+)/([[:alnum:]\\-]+)$" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment