feat: add instagram private account tip (#4575)
This commit is contained in:
@@ -12,6 +12,9 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
const data = JSON.parse(response.data.match(/<script type="text\/javascript">window._sharedData = (.*);<\/script>/)[1]) || {};
|
||||
if (data.entry_data.ProfilePage[0].graphql.user.is_private) {
|
||||
throw 'This Account is Private';
|
||||
}
|
||||
const list = data.entry_data.ProfilePage[0].graphql.user.edge_owner_to_timeline_media.edges;
|
||||
const name = data.entry_data.ProfilePage[0].graphql.user.full_name;
|
||||
const profileImageUrl = data.entry_data.ProfilePage[0].graphql.user.profile_pic_url_hd;
|
||||
|
||||
Reference in New Issue
Block a user