Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
Created April 19, 2024 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gingerbeardman/e4b07db8d59dec441bc9ada1972789c4 to your computer and use it in GitHub Desktop.
Save gingerbeardman/e4b07db8d59dec441bc9ada1972789c4 to your computer and use it in GitHub Desktop.
Huginn JSON for Yahoo! Japan Auctions
{
"expected_update_period_in_days": "1",
"url": [
"https://auctions.yahoo.co.jp/search/search?p=花札&en=Hanafuda&exflg=1&b=1&n=100&s1=new&o1=d&mode=1",
],
"type": "html",
"mode": "on_change",
"extract": {
"url": {
"css": "a.Product__titleLink",
"value": "@href"
},
"title": {
"css": "a.Product__titleLink",
"value": "@title"
},
"en": {
"xpath": "//html/head/title",
"value": "substring-before(substring-after(., ' -'), 'の')",
"repeat": "true"
},
"image": {
"css": ".Product__imageData",
"value": "@src"
},
"price": {
"css": ".Product__priceInfo .Product__price:first-of-type",
"value": "string(.)"
},
"timestamp": {
"xpath": "//*[@class=\"Product\"]/div[1]/a/@data-cl-params",
"value": "substring-after(substring-before(., \";end:\"), \";st:\")"
}
},
"proxy": "http://12.34.56.78:9999"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment