$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "url": "https://ollama.com/library",
< "itemSelector": "#repo li",
< "fields": {
< "name": "div[title]::attr(title)",
< "url": "a::attr(href)",
< "description": "p.max-w-lg::text",
< "pulls": "p.my-4 > span:nth-of-type(1) > span:nth-of-type(1)::text",
< "tag_count": "p.my-4 > span:nth-of-type(2) > span:nth-of-type(1)::text",
< "updated": "p.my-4 > span:nth-of-type(3) > span:nth-of-type(2)::text",
< "capabilities": "span.bg-indigo-50::text",
< "sizes": "span.text-blue-600::text"
< },
< "proxy": {
< "useApifyProxy": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/zenolvepro~ollama-library/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'