Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
83.4
TFLOPS
95
7
207
Tim Dolan
macadeliccc
Follow
Wauplin's profile picture
shtefcs's profile picture
AiModelsMarket's profile picture
171 followers
·
34 following
tdolan21
tim-dolan-ml
AI & ML interests
None yet
Recent Activity
replied
to
their
post
28 days ago
Automated web scraping with playwright is becoming easier by the day. Now, using ollama tool calling, its possible to perform very high accuracy web scraping (in some cases 100% accurate) through just asking an LLM to scrape the content for you. This can be completed in a multistep process similar to cohere's platform. If you have tried the cohere playground with web scraping, this will feel very similar. In my experience, the Llama 3.1 version is much better due to the larger context window. Both tools are great, but the difference is the ollama + playwright version is completely controlled by you. All you need to do is wrap your scraper in a function: ``` async def query_web_scraper(url: str) -> dict: scraper = WebScraper(headless=False) return await scraper.query_page_content(url) ``` and then make your request: ``` # First API call: Send the query and function description to the model response = ollama.chat( model=model, messages=messages, tools=[ { 'type': 'function', 'function': { 'name': 'query_web_scraper', 'description': 'Scrapes the content of a web page and returns the structured JSON object with titles, articles, and associated links.', 'parameters': { 'type': 'object', 'properties': { 'url': { 'type': 'string', 'description': 'The URL of the web page to scrape.', }, }, 'required': ['url'], }, }, }, ] ) ``` To learn more: Github w/ Playground: https://github.com/tdolan21/tool-calling-playground/blob/main/notebooks/ollama-playwright-web-scraping.ipynb Complete Guide: https://medium.com/@tdolan21/building-an-llm-powered-web-scraper-with-ollama-and-playwright-6274d5d938b5
liked
a model
2 months ago
nm-testing/Devstral-Small-2505-FP8-dynamic
updated
a Space
2 months ago
macadeliccc/liquid_ai_chatbot
View all activity
Organizations
macadeliccc
's models
137
Sort: Recently updated
macadeliccc/piccolo-4x7b
Text Generation
•
24B
•
Updated
Jan 25, 2024
•
3
macadeliccc/TheCorso-7b-v1
Text Generation
•
7B
•
Updated
Jan 25, 2024
•
3
macadeliccc/laser-dolphin-mixtral-4x7b
Text Generation
•
24B
•
Updated
Jan 23, 2024
•
3
macadeliccc/SOLAR-polyglot-4x10.7b
Text Generation
•
36B
•
Updated
Jan 22, 2024
•
4
•
1
macadeliccc/Orca-SOLAR-4x10.7b-GGUF
36B
•
Updated
Jan 20, 2024
•
3
•
1
macadeliccc/piccolo-math-2x7b-GGUF
13B
•
Updated
Jan 19, 2024
•
17
macadeliccc/SOLAR-math-2x10.7b-v0.2-GGUF
19B
•
Updated
Jan 18, 2024
•
4
•
2
macadeliccc/polyglot-4x7b-GGUF
24B
•
Updated
Jan 18, 2024
•
2
macadeliccc/Polyglot-8x7b-v0.1-GGUF
47B
•
Updated
Jan 18, 2024
•
2
•
1
macadeliccc/SOLAR-math-2x10.7b-GGUF
Updated
Jan 17, 2024
macadeliccc/piccolo-2x7b
Text Generation
•
13B
•
Updated
Jan 17, 2024
•
3
macadeliccc/piccolo-2x7b-GGUF
13B
•
Updated
Jan 17, 2024
•
13
•
3
macadeliccc/Polyglot-8x7b-v0.1
Text Generation
•
47B
•
Updated
Jan 16, 2024
•
3
macadeliccc/SOLAR-10.7x2_19B
Text Generation
•
19B
•
Updated
Jan 14, 2024
•
3
macadeliccc/dolphin-mixtral-2x7b
Text Generation
•
13B
•
Updated
Jan 11, 2024
•
3
macadeliccc/code-llama-pro-8b-qlora
Text Generation
•
Updated
Jan 9, 2024
•
4
macadeliccc/billsum_T5_small
0.1B
•
Updated
Dec 20, 2023
•
3
Previous
1
...
3
4
5
Next