it returns html which gives error when sent to slack
Did you get the URL of the tweet and just put the path of the output in the posting to slack box.
but it gives html, i need to give tweet content
First off, welcome to the Pipedream community. Happy to have you!
To retrieve the tweet in JSON format, I recommend using the Twitter API. You can look at this example: