Introducing Firecrawl v2.5 - The world's best web data API. Read the blog.
Launch Week II - Day 5: Introducing New Actions
placeholderEric Ciarla
Nov 01, 2024
Launch Week II - Day 5: Introducing New Actions image

Welcome to Day 5 of Firecrawl’s second Launch Week! Today, we’re excited to introduce two powerful new actions that will enhance your web scraping capabilities: Scrape and Wait for Selector.

Introducing the New Actions

Firecrawl allows you to perform various actions on a web page before scraping its content. This is particularly useful for interacting with dynamic content, navigating through pages, or accessing content that requires user interaction.

We’re excited to introduce two powerful new actions:

  1. Scrape: Capture the current page content at any point during your interaction sequence, returning both URL and HTML.
  2. Wait for Selector: Wait for a specific element to appear on the page before proceeding, ensuring more reliable automation.

Here’s how you can incorporate these new actions:

actions = [
    {"type": "scrape"},
    {"type": "wait", "selector": "#my-element"},
]

For more details about the actions parameters, refer to the API Reference.

Why Use These New Actions?

  • Flexibility: Capture content at multiple points in your interaction flow.
  • Reliability: Ensure elements are loaded before proceeding, reducing errors.
  • Efficiency: Automate complex navigation and interactions seamlessly.

What’s Next?

That’s a wrap for Day 5 of Launch Week II! Happy scraping, and stay tuned for more exciting updates from Launch Week II!

FOOTER
The easiest way to extract
data from the web
. . .. ..+ .:. .. .. .:: +.. ..: :. .:..::. .. .. .--:::. .. ... .:. .. .. .:+=-::.:. . ...-.::. .. ::.... .:--+::..: ......:+....:. :.. .. ....... ::-=:::: ..:-:-...: .--..:: ......... .. . . . ..::-:-.. .-+-:::.. ...::::. .: ...::.:.. . -... ....: . . .--=+-::. :-=-:.... . .:..:: .:---:::::-::.... ..::........::=..... ...:-.. .:-=--+=-:. ..--:..=::.... . .:.. ..:---::::---=:::..:... ..........::::.:::::::-::.-.. ...::--==:. ..-::-+==-:... .-::....... ..--:. ..:=+==.---=-+-:::::::-.. . .....::......:: ::::-::.---=+-:..::-+==++X=-:. ..:-::-=-== ---.. .:.--::.. .:-==::=--X==-----====--::+:::+... ..-....-:..::-::=-=-:-::--===++=-==-----== X+=-:.::-==----+==+XX+=-::.:+--==--::. .:-+X=----+X=-=------===--::-:...:. .... ....::::...:-:-==+++=++==+++XX++==++--+-+==++++=-===+=---:-==+X:XXX+=-:-=-==++=-:. .:-=+=- -=X+X+===+---==--==--:..::...+....+ ..:::---.::.---=+==XXXXXXXX+XX++==++===--+===:+X+====+=--::--=+XXXXXXX+==++==+XX+=: ::::--=+++X++X+XXXX+=----==++.+=--::+::::+. ::.=... .:::-==-------=X+++XXXXXXXXXXX++==++.==-==-:-==+X++==+=-=--=++++X++:X:X+++X+-+X X+=---=-==+=+++XXXXX+XX=+=--=X++XXX==---::-+-::::.:..-..
Backed by
Y Combinator
LinkedinGithub
SOC II · Type 2
AICPA
SOC 2
X (Twitter)
Discord