Take a long screenshot

Hi, I'm having issues taking screenshots of long pages. It cuts off half way, returning the rest of the page in white. I thought it may be a size issue, so had the idea of capturing multiple screenshots at different spots and stitch them together. But I haven't been able to get this to work (it just takes multiple screenshots of the initial viewport)
10 Replies
Harsh
Harsh4mo ago
Hey @Jaiden Fahey Thanks for spotting this issue taking a look
Jaiden Fahey
Jaiden FaheyOP4mo ago
Thank you. Let me know if you need some examples or anything else
Harsh
Harsh4mo ago
Could you please provide any code snippets you used? This would help me debug more quickly. hey @Jaiden Fahey please use the v2 SDK, it seems like the issue lies in v1 Here is the code snippet. Feel free to tweak it based on your needs from firecrawl.v2.client import FirecrawlClient as Firecrawl app = Firecrawl(api_key="YOUR_API_KEY") result = app.scrape( 'https://www.firecrawl.dev/', formats=[{ "type": "screenshot", "full_page": True, "quality": 90, "viewport": { "width": 1280, "height": 800 } }], only_main_content=False, timeout=120000 ) Let me know if you have any further issues Additionally, make sure you are using the latest version of the SDK
Jaiden Fahey
Jaiden FaheyOP4mo ago
Any other ideas? I've been using v2. It also doesn't work while testing inside the playground. Some of the pages I've been testing are very long, but it is stopping a lot shorter than other tools. I'll message you the firecrawl example (link is too long for here). Thank you for looking into this!
Harsh
Harsh4mo ago
hey @Jaiden Fahey tested the example you shared, looks good to me Please check if you have exhausted your credits Additionally, try increasing the wait time and timeout
No description
Jaiden Fahey
Jaiden FaheyOP4mo ago
Wow, that's awesome! Thank you. I thought I already had a large wait and timeout set. Do you remember what you had yours set around?
Harsh
Harsh4mo ago
I used the default wait: 6000 timeout: 350000 Feel free to tweak it for your needs
Jaiden Fahey
Jaiden FaheyOP4mo ago
Thanks a bunch! You've been a great help.
Brad
Brad2mo ago
does the API respect width and height when fullpage is true? I can't seem to make that work

Did you find this page helpful?