$echo '{
< "requests": [
< {
< "url": "https://www.scrapethissite.com/pages/simple/"
< },
< {
< "id": "forms",
< "url": "https://www.scrapethissite.com/pages/simple/",
< "extract": [
< {
< "field_name": "extracted_html",
< "selector": "#countries > div > div:nth-child(4) > div:nth-child(1)",
< "extract_type": "HTML"
< }
< ]
< },
< {
< "id": "hockey",
< "url": "https://www.scrapethissite.com/pages/forms/",
< "extract": [
< {
< "field_name": "year1",
< "selector": "#hockey > div > table > tbody > tr:nth-child(2) > td.year",
< "extract_type": "Text"
< },
< {
< "field_name": "year2",
< "selector": "#hockey > div > table > tbody > tr:nth-child(3) > td.year",
< "extract_type": "Text"
< },
< {
< "field_name": "class_name",
< "selector": "#hockey > div > table > tbody > tr:nth-child(2) > td.year",
< "extract_type": {
< "Attribute": "class"
< }
< }
< ]
< }
< ],
< "proxy_settings": {
< "useApifyProxy": true
< }
<}' |
<apify call danielherman/fast-scraper --silent --output-dataset