我想从简码中获取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