Viewing a single comment thread. View all comments

thingandstuff t1_j74lotl wrote

How does a raspberry pi give you API access?

4

Raichuboy17 t1_j75htvk wrote

I... didn't say it gives you API access? It allows you to get around having to use an API and does web automation on dedicated hardware. Clunky, but it would work. Pretty sure there's a more simple and cheap solution out there, but that was the first solution that came to mind.

1

rafaelfootball63 t1_j75wbxs wrote

I don't see how a raspberry pi helps the goal at all, can you elaborate? I'm thinking if you were to try to do a ghetto API you could use Puppeteer or an equivalent which could run on an pi I guess, but also basically any computer. I would just run Puppeteer on whatever hardware you are using for the rest of your app, be it your PC, AWS...

4

Raichuboy17 t1_j77gtlg wrote

Yup. Pretty much. I'm not a programmer, but I've done this exact thing on a raspberry pi which is why I mentioned it. Didn't know about Puppeteer, but yeah, that seems like a much easier solution!

1

thingandstuff t1_j76qssp wrote

You’re basically talking about rolling your own client side API that just impersonates browser interaction, even if it’s something out of the box, and said that was an “easy” replacement for a documented server side API. And the raspberry pi is completely irrelevant — as it’s just a place to do the compute.

This idea doesn’t make you seem knowledgeable on the subject.

0

Raichuboy17 t1_j77g9qa wrote

You can literally program that with Python in an hour or two. There's lots of tutorials out there for it. The goal was to get around paying for Twitter's API. You're right, I'm not a professional programmer, or even knowledgeable, but I have done this before for another project which is why I mentioned it.

1