61 lines
96 KiB
Plaintext
61 lines
96 KiB
Plaintext
|
|
{
|
||
|
|
"cells": [
|
||
|
|
{
|
||
|
|
"cell_type": "code",
|
||
|
|
"execution_count": 6,
|
||
|
|
"metadata": {},
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "stdout",
|
||
|
|
"output_type": "stream",
|
||
|
|
"text": [
|
||
|
|
"{'success': True, 'data': {'html': '<!DOCTYPE html><html lang=\"en\" class=\"light\" style=\"color-scheme: light;\"><body class=\"__variable_36bd41 __variable_d7dc5d font-inter antialiased bg-white text-zinc-900 tracking-tight\"><div><div class=\"bg-gradient-to-r from-amber-300 via-stone-7 00 to-orange-400 text-sm text-white py-2 px-3 text-center\"><p><span class=\"font-semibold\">Our first Launch Week is over!<!-- --> <a class=\"underline\" href=\"blog/firecrawl-launch-week-1-recap\">See the recap 🚀</a></span> </p></div><link href=\"https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap\" rel=\"stylesheet\"><main id=\"skip\" class=\"min-h-[calc(100dvh-4rem)] md:min-h[calc(100dvh-5rem)]\"><section class=\"relative before:absolute before:inset-0 before:h-80 before:pointer-events-none bg-white before:-z-10\"><div class=\"pt-10 pb-4 md:pt-20\"><div class=\"px-4 sm:px-6\"><div class=\"max-w-3xl mx-auto\"><div class=\"text-center pb-12 md:pb-16\"><a class=\"mb-4 md:mb-5 group-hover:-translate-y-0.5 btn-sm py-0.5 bg-zinc-100/50 !border !border-primary/10 text-zinc-500 hover:text-zinc-800 transition delay-100 duration-500 xl:animate-fade-in-down relative \" href=\"/pricing\"><span class=\"relative inline-flex items-center text-xs \"><span class=\" text-zinc-700 transition-transform duration-150 ease-in-out mr-1\">💥</span> <!-- -->Get 2 months free with yearly plan</span></a><h1 class=\"font-inter-tight text-4xl lg:text-5xl xl:text-6xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-zinc-500 via-zinc-900 to-zinc-900 pb-4\">Turn websites into <br><em class=\"relative px-1 italic animate-text transition-all text-transparent bg-clip-text bg-gradient-to-tr from-red-600 to-yellow-500 inline-flex justify-center items-center \"> <!-- -->LLM-ready<svg class=\"absolute fill-zinc-500 w-[calc(100%+1rem)] -z-10\" xmlns=\"http://www.w3.org/2000/svg\" width=\"223\" height=\"62\" viewBox=\"0 0 223 62\" aria-hidden=\"true\" preserveAspectRatio=\"none\"><path d=\"M45.654 53.62c17.666 3.154 35.622 4.512 53.558 4.837 17.94.288 35.91-.468 53.702-2.54 8.89-1.062 17.742-2.442 26.455-4.352 8.684-1.945 17.338-4.3 25.303-7.905 3.94-1.81 7.79-3.962 10.634-6.777 1.38-1.41 2.424-2.994 2.758-4.561.358-1.563-.078-3.143-1.046-4.677-.986-1.524-2.43-2.96-4.114-4.175a37.926 37.926 0 0 0-5.422-3.32c-3.84-1.977-7.958-3.563-12.156-4.933-8.42-2.707-17.148-4.653-25.95-6.145-8.802-1.52-17.702-2.56-26.622-3.333-17.852-1.49-35.826-1.776-53.739-.978-8.953.433-17.898 1.125-26.79 2.22-8.887 1.095-17.738 2.541-26.428 4.616-4.342 1.037-8.648 2.226-12.853 3.676-4.197 1.455-8.314 3.16-12.104 5.363-1.862 1.13-3.706 2.333-5.218 3.829-1.52 1.47-2.79 3.193-3.285 5.113-.528 1.912-.127 3.965.951 5.743 1.07 1.785 2.632 3.335 4.348 4.68 2.135 1.652 3.2 2.672 2.986 3.083-.18.362-1.674.114-4.08-1.638-1.863-1.387-3.63-3.014-4.95-5.09C.94 35.316.424 34.148.171 32.89c-.275-1.253-.198-2.579.069-3.822.588-2.515 2.098-4.582 3.76-6.276 1.673-1.724 3.612-3.053 5.57-4.303 3.96-2.426 8.177-4.278 12.457-5.868 4.287-1.584 8.654-2.89 13.054-4.036 8.801-2.292 17.74-3.925 26.716-5.19C70.777 2.131 79.805 1.286 88.846.723c18.087-1.065 36.236-.974 54.325.397 9.041.717 18.07 1.714 27.042 3.225 8.972 1.485 17.895 3.444 26.649 6.253 4.37 1.426 8.697 3.083 12.878 5.243a42.11 42.11 0 0 1 6.094 3.762c1.954 1.44 3.823 3.2 5.283 5.485a12.515 12.515 0 0 1 1.63 3.88c.164.706.184 1.463.253 2.193-.063.73-.094 1.485-.247 2.195-.652 2.886-2.325 5.141-4.09 6.934-3.635 3.533-7.853 5.751-12.083 7.688-8.519 3.778-17.394 6.09-26.296 7.998-8.917 1.86-17.913 3.152-26.928 4.104-18.039 1.851-36.17 2.295-54.239 1.622-18.062-.713-36.112-2.535-53.824-6.23-5.941-1.31-5.217-2.91.361-1.852\"></path></svg></em> <!-- -->data</h1><p class=\"text-xl text-zinc-500 mb-8 max-w-lg mx-auto\">Power your AI apps with clean data crawled from any website. It\\'s also open-source.</p><div class=\"relative max-w-xl mx-auto mb-4 sm:space-x-4\"><input class=\"flex h-10 w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": [
|
||
|
|
"import requests\n",
|
||
|
|
"\n",
|
||
|
|
"payload = {\n",
|
||
|
|
" \"url\": \"https://www.firecrawl.dev\",\n",
|
||
|
|
" \"formats\": [\"html\"],\n",
|
||
|
|
" \"actions\": [{'type': 'click', 'selector': 'a[href=\"https://calendly.com/d/cj83-ngq-knk/meet-firecrawl\"]'}]\n",
|
||
|
|
" }\n",
|
||
|
|
"headers = {\n",
|
||
|
|
" \"Authorization\": f\"Bearer fc-fa95acf54c0e496fbe6b403745f246ab\",\n",
|
||
|
|
" \"Content-Type\": \"application/json\"\n",
|
||
|
|
" }\n",
|
||
|
|
"\n",
|
||
|
|
"response = requests.post(\"https://api.firecrawl.dev/v1/scrape\", json=payload, headers=headers)\n",
|
||
|
|
" \n",
|
||
|
|
"\n",
|
||
|
|
"scrape_result = response.json() \n",
|
||
|
|
"print(scrape_result)\n",
|
||
|
|
"\n",
|
||
|
|
" \n"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"metadata": {
|
||
|
|
"kernelspec": {
|
||
|
|
"display_name": "Python 3",
|
||
|
|
"language": "python",
|
||
|
|
"name": "python3"
|
||
|
|
},
|
||
|
|
"language_info": {
|
||
|
|
"codemirror_mode": {
|
||
|
|
"name": "ipython",
|
||
|
|
"version": 3
|
||
|
|
},
|
||
|
|
"file_extension": ".py",
|
||
|
|
"mimetype": "text/x-python",
|
||
|
|
"name": "python",
|
||
|
|
"nbconvert_exporter": "python",
|
||
|
|
"pygments_lexer": "ipython3",
|
||
|
|
"version": "3.10.13"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"nbformat": 4,
|
||
|
|
"nbformat_minor": 2
|
||
|
|
}
|