IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

Auto Twitter Post On release

Open mlodic opened this issue 2 years ago • 14 comments

The actual Github Action is not working anymore. We should migrate to v2 APIs of Twitter

mlodic avatar Aug 07 '23 10:08 mlodic

Hey, @mlodic can I take a look at this?

shivam-Purohit avatar Aug 18 '23 04:08 shivam-Purohit

sure!

mlodic avatar Aug 18 '23 07:08 mlodic

I dont think they have updated to the newer version of Twitter API. Should we search for other options? Like other actions? Or some manual way to do it

shivam-Purohit avatar Aug 18 '23 07:08 shivam-Purohit

nope they don't. Right now there is almost nothing in the community regarding v2 of Twitter APIs because most of those APIs requires payment. However, it is free to publish a post so that integration could be done. It would be cool to create a new Github Action and publish it, I guess a lot of people could leverage it

mlodic avatar Aug 18 '23 07:08 mlodic

Seems good! I will look more into how to publish Github Actions.

shivam-Purohit avatar Aug 18 '23 07:08 shivam-Purohit

According to the docs we need to have a separate repository for the individual action.

I was thinking of using tweepy. It makes it lot easier to interact with the twitter API. I tested it with my own account for posting and it's working fine. Should we add a script to interact with the API and use that in the yml? Is this how we could approach this?

shivam-Purohit avatar Aug 19 '23 13:08 shivam-Purohit

I was thinking of using tweepy. It makes it lot easier to interact with the twitter API.

seems unnecessary to install a library for a single task. It would make the action slower. We would directly interact with the API.

shivam-Purohit avatar Aug 21 '23 03:08 shivam-Purohit

hey,

seems unnecessary to install a library for a single task. It would make the action slower. We would directly interact with the API.

Yeah but consider that this API will be executed rarely, only once the release is created. So it's not a real problem. If that library works and makes things easier, you can try to use it

mlodic avatar Aug 21 '23 09:08 mlodic

How do I approach this? I have a sample script ready and the actions sample code is also available. But we need a separate repo. Can you create a repo? and I will pull a draft PR for that.

shivam-Purohit avatar Aug 21 '23 11:08 shivam-Purohit

hey @mlodic, was it incorrect ? should I work on this or not ?

shivam-Purohit avatar Sep 06 '23 13:09 shivam-Purohit

sorry, I created the repo: https://github.com/intelowlproject/twitter_post

mlodic avatar Sep 06 '23 13:09 mlodic

thanks, I will try to push some draft code there this week.

shivam-Purohit avatar Sep 06 '23 14:09 shivam-Purohit

@mlodic I have pushed some new changes. Can you have a look?

shivam-Purohit avatar Oct 11 '23 11:10 shivam-Purohit