从发布简码获取instagram id

时间:2019-07-26 16:07:31

标签: instagram instagram-graph-api

我想从简码中获取instagram媒体ID。我使用此功能:

#background {
        width: 100%;
        height: 100%;
        position: absolute;
        background: #111111 url('/images/background.jpg') no-repeat;
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        opacity: 0.6;


    }

但是它给了我def shortcode_to_id(shortcode): code = ('A' * (12 - len(shortcode))) + shortcode return int.from_bytes(base64.b64decode(code.encode(), b'-_'), 'big') ,没有ID,例如:

ig_id

0 个答案:

没有答案