I'm trying to automate photos being uploaded and removed to Google photos based on a certain date. Not exactly sure the best way to pursue this task and would truly appreciate the input.
I tried search for some program or app that would provide this capability and didn't have any luck.
Related
Currently trying to figure out how to check whether or not very large Instagram accounts (10M+ followers) are following a list of 30-40k users. Scraping all followers doesn't seem to be a very viable solution, as Instagram rate limits at every ~10k requests (so naturally, scraping 50-60M usernames would take very long).
The Instagram app has a search-bar feature that obviously lets one check whether or not an account follows someone; however, I'm not entirely sure how to replicate this functionality on web.
Does anyone know of any ways to achieve this functionality through a Selenium-like bot and / or utilize the Instagram API?
Figured it out! For anyone who has a similar goal, I accomplished the above with two approaches:
1.) Appium / Selenium automation w/ Android emulator (takes advantage of the Instagram native-only search fucntionality)
2.) Overkill: Fiddler and patched Instagram APK (SSL cert-pinning disabled) to find the actual query to see whether a user is following another).
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.
I have downloaded the google photos. And I've uploaded more than 6,000 personal photos. But I find it hard to tag person names?
Where can I tag persons' names so that I can search them?
I've seen the google I/O and the speaker show that Google-Photos can recognize his daughter. But I can't even tag nor search a person's name.
However I know that I can upload photos to Google+ so that I can tag them. But it sounds crazy to share all my 6000+ photos to Google Plus.
What should I to to reach the same effect on the Google I/O.(Make all my photos searchable?)
Well, I got it.
The only reason is that face detecting is not available out side the US.(I am from China)
To solve this,just use VPN the first time you start the APP.
(On Android clear app data & On iOS re-install it)
I'm trying to use this API to search for videos. I have a client key, secret, and everything I need.
I have scoured the API doc page up and down several times, and can't find any reference to video search.
The on-site search allows video search, and the API works fine when I search videos.
I use:
'https://connect.gettyimages.com/v3/search/images/editorial?phrase=' + query + '&fields=id%2Ctitle%2Ccaption%2Cpreview to search for images, and I've tried every combination of the word 'video' in that to search for videos, to no avail.
The images search works great, by the way.
The "swagger" interactive page (most annoying way to display an API doc, by the way) has a section for images, search/images, etc, but no video search or video (using video id).
the v3 API release notes states that they now have support for video search and download. Where?
Thanks to anyone that can lend a hand here, this is probably the most confusing API I've ever encountered.
Thank you!
sorry it's taken so long answer your question! At the time you posted, I don't think we had our video-specific search and download endpoints up. They are there now, though they're still in beta. Should be that way for a couple more weeks.
https://connect.gettyimages.com/swagger/ui/index.html#!/Search
Searching for "video" via the image search endpoints will not give you video files.
Thanks,
Matt
Getty Images API operations
I've recently run into some trouble in a Web app I'm developing. In this Web app I allow users to upload pictures and I need to check -to a certain extent- that the pictures they upload were taken from their own cameras, webcams, mobile devices, etc.
If I can't guarantee that the image being uploaded "belongs" to the user (e.g. was downloaded from somewhere on the internet, made in Paint, etc.) the file is discarded, otherwise it is stored.
I know any method to implement this will be highly inaccurate and will produce many false positives -or negatives- and that there is no bulletproof solution, but I'm just looking for a tentative way to do it.
So far I've thought of
checking if the picture has Exif data present and if so, if it's
date is relatively recent, store it
providing the option to take "snapshots" from the user's webcam like Facebook does
for the profile picture
Are there any other ways to do this?