47 lines
1.5 KiB
JSON
47 lines
1.5 KiB
JSON
{
|
|
"sites": [
|
|
"reddit"
|
|
],
|
|
"task_id": 615,
|
|
"require_login": true,
|
|
"storage_state": "./.auth/reddit_state.json",
|
|
"start_url": "http://localhost:28080/f/pics",
|
|
"geolocation": null,
|
|
"intent_template": "Re-post the image of {{content}} in this page to {{subreddit}} subreddit and note \"from /f/pics\"",
|
|
"instantiation_dict": {
|
|
"content": "Bald Eagle",
|
|
"subreddit": "earthporn"
|
|
},
|
|
"intent": "Re-post the image of Bald Eagle in this page to earthporn subreddit and note \"from /f/pics\"",
|
|
"require_reset": false,
|
|
"eval": {
|
|
"eval_types": [
|
|
"url_match",
|
|
"program_html"
|
|
],
|
|
"reference_answers": null,
|
|
"reference_url": "http://localhost:28080/f/earthporn",
|
|
"program_html": [
|
|
{
|
|
"url": "func:reddit_get_post_url('__last_url__')",
|
|
"locator": "document.querySelector('.submission__inner').outerText",
|
|
"required_contents": {
|
|
"must_include": [
|
|
"from /f/pics"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "func:reddit_get_post_url('__last_url__')",
|
|
"locator": "[...document.querySelector('.submission__inner').querySelectorAll('[href],[src]')].map(elem => elem.getAttribute('href') || elem.getAttribute('src')).join(' ')",
|
|
"required_contents": {
|
|
"must_include": [
|
|
"b02113033af32feae9ff147dbbe3764039368d67d193885bd04e65c2e6beea9c.jpg"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"url_note": "GOLD in PRED"
|
|
},
|
|
"intent_template_id": 11
|
|
} |