Steam client API to add non-steam games? - automation

I wanted to automate adding some non-steam games to my library on Steam Deck, similar to how EmuDeck can automatically add things to your library, but I was having a hard time finding how this works. Is there like a steam client API I can use? Or is there a different way of doing this by editing some file steam reads from to get the non-steam games?

So it turns out there is https://developer.valvesoftware.com/wiki/SteamCMD.
Others finding this might also want to check out https://github.com/berenm/steam-cli for a nicer cli interface, and https://github.com/sonic2kk/steamtinkerlaunch/wiki/Add-Non-Steam-Game for more functionality.

Related

How to share program that uses private API key without sharing the key?

Currently working on a python project, and am trying to get it usable enough to the point where I could share it with other people on platforms like reddit or github. However, I can't go sharing around the API. Is there any way to include the API key but hide it somehow so it is simultaneously usable and still hidden from any users who download my repository?
There is not a way to have an API key be shared so it's both usable and private. If you can't share the API, then you'll just have to keep it to yourself.

What is the most efficient way to automate your Instagram?

Over the past few weeks, I've spent some time researching about Instagram automation the goal being to have a program that can like and comment for me. I've come up with the following solutions:
Use a browser automation library like selenium to navigate through Instagram's website.
Cons: really botchy code that becomes useless as soon as Instagram renames their css classes which they do from time to time
Have a Android emulator running and automate that.
Cons: every instance of that emulator would require like 2 gigs of storage and would be really inefficient.
So how do for example apps on the play-/app store do it? They only have the small processing power of the phone available and still run effortless in the background.
Is there another solution that I'm missing?
The most efficient way to automate Instagram is to use the Instagram API. Using that API you can publish photos with users, tags and locations [1]. I don't find any immediate mention of Stories etc., but most likely if you work more with the API you find where/how to do that.
The also linked Instagram Platform API seems to be in a state of discontinuation.
As you tagged your question "Selenium", no, Selenium does not provide a reasonable approach for interfacing with Instagram as Selenium provides no way to make POST requests. You could try to automate the website through Selenium, but using the API is far more straightforward, less prone to layout changes and the officially sanctioned way.
[1] https://developers.facebook.com/docs/instagram-api/content-publishing
The way I did it at the end was that I used the Instagram Private API for Instagram on GitHub:
https://github.com/ping/instagram_private_api
That way I didn't have to emulate an entire device actually browsing through Instagram.

Twitter API - which Library?

I'm new to objective-c/cocoa and I want to build a simple app using Twitter API.
I only want to access the Followers of the user and because of that I don't think I will need a complex library like MGTwitterEngine.
Is there any Engine out there to my needs or should I use MGTwitterEngine?
I'd recommend getting some experience with MGTwitterEngine. Even if you don't have a use for the entire library, I'm sure you'll want to take advantage of it later on down the road once you see what it's capable of. You can even find an entire tutorial from start to finish on creating a twitter client with the MGTwitterEngine.

Is it possible to develop a Facebook app that filters updates out of a feed?

Namely, does the Facebook API make this possible? I'd like to leave my news feed intact, but remove posts that meet some criteria for things I don't want to see (e.g., don't show me anything that sounds like Dick Cheney might have said it). Does the Facebook API allow apps to customize a user's normal news feed? I spent a few minutes looking at the facebook developer pages, but didn't see any direct answers to my question, so I was hoping some developers who were experienced with Facebook's API could help me here.
Before anyone mentions it, I don't want to just hide updates from those users. They may post other updates that I want to see, so I'd prefer to filter out updates based on content.
There is a Greasemonkey script called "Facebook Purity" which does this. You could probably look at the source and alter it to your specifications.
You could parse the news feed into a database on your site then use code to parse whether or not to display it.
yes this is possible but only if all your friends decide to add your application! otherwise you may be not able to access their feeds.
Its been a while since i used Facebook SDK so this may have changed.
The API provides very little news feed integration, and no you can't use the api to prevent news feed items from showing up in a users feed. All you can do is post and get, and you can only post 10 items a day, "significant" interactions. The Facebook API wasn't designed to enhance or alter the core Facebook experience, it was designed to allow developers to create third party apps that add to Facebook within a very limited and tightly controlled sandbox.
The Linq to facebook project looks quite interesting and may allow you to do what you are asking (if using .NET 3.5). My apologies for a link to such a pink website ;-)

Set instant messenger display message programmatically

Would a script that sets display messages for instant messengers be simple or complex? After some searching, there doesn't seem to be any information about this at all.
For the sake of an example, if I had a text file of quotations, would it be possible to have the google talk display message change to a different quotation hourly?
Depends on which client you're using. As far as I know, Google's client doesn't offer any interface for plugins, but the open source instant messenger Pidgin does. I think there already is a plugin for what you want to do, but you can write your own using the documentation and examples they give you.
The complexity of writing something like this is based on how much C or Perl you know, since you can program in either of those for Pidgin. Reading code from other people's plugins, you should be able to figure out the Pidgin API.
You can use Kik API to programmatically send rich content and files between mobile applications. It is available for iPhone and Android platforms and takes only about 5 lines of code to integrate into your app. There is more info at the API website: http://www.kik.com/dev
Disclaimer: I'm on of the developers behind Kik API :)