Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👀 news article #30

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions fetch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 81,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -42,29 +42,29 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 82,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<Response url='https://www.capecodhealth.org/locations/profile/cape-cod-surgery-center/?searchId=b8a9e746-eb81-ee11-a867-000d3a611c21&sort=11&page=1&pageSize=10' request=<Request url='https://www.capecodhealth.org/locations/profile/cape-cod-surgery-center/?searchId=b8a9e746-eb81-ee11-a867-000d3a611c21&sort=11&page=1&pageSize=10' method='GET'>>"
"<Response url='https://zapier.com/blog/how-activecampaign-lowered-its-average-churn-rate/' request=<Request url='https://zapier.com/blog/how-activecampaign-lowered-its-average-churn-rate/' method='GET'>>"
]
},
"execution_count": 24,
"execution_count": 82,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Go to your desired URL\n",
"desired_url = \"https://www.capecodhealth.org/locations/profile/cape-cod-surgery-center/?searchId=b8a9e746-eb81-ee11-a867-000d3a611c21&sort=11&page=1&pageSize=10\"\n",
"desired_url = \"https://zapier.com/blog/hudl-uses-automation-to-create-seamless-user-experience/\"\n",
"await page.goto(desired_url)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 83,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -77,15 +77,15 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 84,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Page saved as MHTML at: ./bananalyzer/data/3692abd6-a2d1-4148-bd85-8993e9e2db81/index.mhtml\n",
"Page saved as MHTML at: ./bananalyzer/data/3692abd6-a2d1-4148-bd85-8993e9e2db81/index.mhtml\n"
"Page saved as MHTML at: ./static/483a6a86-abf1-4505-a75b-67dfa4138a26/index.mhtml\n",
"Page saved as MHTML at: ./static/483a6a86-abf1-4505-a75b-67dfa4138a26/index.mhtml\n"
]
}
],
Expand Down Expand Up @@ -114,10 +114,9 @@
" \"id\": str(uuid.uuid4()),\n",
" \"url\": desired_url,\n",
" \"source\": \"mhtml\",\n",
" \"domain\": \"healthcare\",\n",
" \"subdomain\": \"contact\",\n",
" \"type\": \"links\",\n",
" \"goal\": \"Fetch all of the links to the detail pages of clinics on the current page\",\n",
" \"domain\": \"software\",\n",
" \"subdomain\": \"article\",\n",
" \"type\": \"fetch\",\n",
" \"evals\": [{\"type\": \"json_match\", \"expected\": {}}],\n",
"}\n",
"\n",
Expand Down Expand Up @@ -217,7 +216,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
Loading