instagram

BeautifulSoup Find within an instagram html page

只谈情不闲聊 提交于 2019-12-02 08:06:11
I have a problem to find something with bs4. I'm trying to automatically find some urls in an html instagram page and (knowing that I'm a python noob) I can't find the way to search automatically within the html source code the urls who are in the exemple after the "display_url": http..." . I want to make my script search multiples url who appears as next as "display_url" and download them. They have to be extracted as many times as they appear in the source code. With bs4 I tried the : f = urllib.request.urlopen(fileURL) htmlSource = f.read() soup = bs(htmlSource, 'html.parser') metaTag =

share a photo in instagram

我是研究僧i 提交于 2019-12-02 07:37:30
问题 i'm developping an app and i'm trying to share a picture in Instagram . i'm using the code below : Intent i = new Intent(Intent.ACTION_SEND); i.setType("image/jpeg"); i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///"+savedPhotoPath));//savedPhotoPath is the path of my picture stored somewhere in the sdcard startActivity(Intent.createChooser(i, "Share Image")); the problem is that the instagramm is launched with the home activity,( i want to have the activity of share that picture to be

share a photo in instagram

落花浮王杯 提交于 2019-12-02 07:27:02
i'm developping an app and i'm trying to share a picture in Instagram . i'm using the code below : Intent i = new Intent(Intent.ACTION_SEND); i.setType("image/jpeg"); i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///"+savedPhotoPath));//savedPhotoPath is the path of my picture stored somewhere in the sdcard startActivity(Intent.createChooser(i, "Share Image")); the problem is that the instagramm is launched with the home activity,( i want to have the activity of share that picture to be launched ). i've tried to put the extras like this : i.putExtra(Intent.EXTRA_STREAM, new File

Instagram ruby gem - Unable to reach callback URL

自闭症网瘾萝莉.ら 提交于 2019-12-02 06:14:12
问题 Been experimenting with the instagram-ruby-gem on and off for a few days - no matter what I do, when a try to create a realtime subscription, I get https://api.instagram.com/v1/subscriptions.json: 400: Unable to reach callback URL - I can always reach the URL with a web browser and I've tried exposing the url with both localtunnel and heroku with no success. Are there other issues that will produce this same error message? Any other ideas? def sub client = Instagram.client client.create

How to solve auth Error “Redirect URI does not match registered redirect URI” in IOS?

↘锁芯ラ 提交于 2019-12-02 04:29:21
I am working register a new client from instagram developer page for my iphone app.But I have problem.I created client id but it given this error : {"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"} Actually,I used for connection this link in ios code: https://instagram.com/oauth/authorize?response_type=token&redirect_uri=igd9fe475655e646cd8025bed7f8626230%3A%2F%2Fauthorize&scope=comments+likes&client_id=d9fe475655e646cd8025bed7f8626230 So,I found sample Client ID.When I've tried to sample Client ID on this link: https:/

Access token is not authorized with this scope relationship

牧云@^-^@ 提交于 2019-12-02 04:28:33
I am appending scope to auth url like this >>> scope=likes+comments+relationships+basic"; But while logging in, it is not asking user for relationship permission, only showing "this app can acess your photos". Inside the application whenever i am follwoing or unfollwing any user by hitting String url="https://api.instagram.com/v1/users/"+userid+"/relationship/?access_token="+MainSingleTon.accesstoken; // key and value pair List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(1); nameValuePair.add(new BasicNameValuePair("action","unfollow")); JSONObject json=jParser

Querying /tags/tag-name/media/recent endpoint, how to avoid private photos

孤街浪徒 提交于 2019-12-02 03:05:38
问题 I'm currently hitting the /tags/tag-name/media/recent end point periodically and saving to my own database some media that match certain criteria. Sometimes, I get a private photo. This means that in my gallery, when I display said images, some of them show up as broken links, because the instagram image server replies 403 forbidden since those images are private. How can I know which image is private to skip them? I don't see from the end point response how I can do this. Thanks! 回答1: Use

Check if a user is banned or account doesn't actually exist. Instagram, c#

这一生的挚爱 提交于 2019-12-02 01:39:39
问题 I am not using a API but I have been looking into the API like a mad man trying to find some relevance to it. I am opening the website and downloading all of it at the moment to see if it contains "Page Not Found" but banned accounts also say the same thing. So is there any known way to distinguish this? 回答1: Make a call to get the user /users/*user-id* and compare the result for non-existent users. http://instagram.com/developer/endpoints/users/#get_users You could also use the users search

Get a list of users who have liked specific media on Instagram

≯℡__Kan透↙ 提交于 2019-12-02 01:25:46
问题 Using Instagram API I need to get a list of users who have liked specific media. The following call should return the list of all users according to the documentation: https://api.instagram.com/v1/media/555/likes?access_token=ACCESS-TOKEN However, I get only 120 users with no pagination parameters. Is there any way to keep requesting the rest? If you need the code: String requestLikes = "https://api.instagram.com/v1/media/" + mediaID + "/likes?access_token=" + access_token + "&count=0"; //

Instagram ruby gem - Unable to reach callback URL

会有一股神秘感。 提交于 2019-12-01 23:53:45
Been experimenting with the instagram-ruby-gem on and off for a few days - no matter what I do, when a try to create a realtime subscription, I get https://api.instagram.com/v1/subscriptions.json : 400: Unable to reach callback URL - I can always reach the URL with a web browser and I've tried exposing the url with both localtunnel and heroku with no success. Are there other issues that will produce this same error message? Any other ideas? def sub client = Instagram.client client.create_subscription( :object => 'tag', :callback_url => root_url, :aspect => "media", :object_id => "pizza" ) end