How to take a screenshot with Pipedream and integrate it with Telegram?

This topic was automatically generated from Slack. You can find the original thread here.

Sarath Kallakuri : Is there a free way of taking a screenshot of a webpage using pipedream?
I wanted to do-

  1. Telegram message with the URL
  2. Pipedream somehow taking a screenshot
  3. Response body is sent somewhere using webhook
    Please share your thoughts

Dylan Sather (Pipedream) : Browserless is a good (paid) service to do that. Take a look at https://github.com/PipedreamHQ/pipedream/issues/209 for a few examples and suggestions

Sarath Kallakuri : Yeah, also saw a API flash that allows 100 free per month.
Apiflash.com

Tod Sacerdoti : First version of ApiFlash integration - ApiFlash API Integrations - Pipedream

Sarath Kallakuri : I’m not sure where I’m going wrong, but after making a successful GET request from that API, how do I properly make a PUT request containing the image body from the GET?
I was uploading to nextcloud and images are corrupt but they do have some file size.

Dylan Sather (Pipedream) : Try referencing {{steps.get_request.$return_value}} as the value of the Body param and let me know if that works

Sarath Kallakuri : That’s what I did and I get corrupt images

Dylan Sather (Pipedream) : Can you click the Share button in the top-right of your workflow and share it with dylan@pipedream.com?

Sarath Kallakuri : I was wondering if I’m supposed to encode it somewhere. Added you in the workflow

Dylan Sather (Pipedream) : I see you just made a change that appears to have worked?

Dylan Sather (Pipedream) : I believe there may be a bug that was affecting you before when you added the HTTP header. I’m looking into that.

Sarath Kallakuri : No, I made that change so you could see it. Even though it triggered fine, I actually still get corrupt images.

Sarath Kallakuri : Is it possible to save the GET body within pipedream to view it? Possibly something could be wrong with Nextcloud PUT API

Dylan Sather (Pipedream) : you should be able to hover over the content of the binary value in the get_request step and press the Copy Value button that appears, which will copy it to your clipboard so you can save it locally. You can also save it to a file in /tmp and upload that file somewhere else (like Amazon S3, Google Drive, Dropbox) and examine the file from there.

Sarath Kallakuri : Ok, will try it. Thanks