(username)
| 62 | return all_urls; |
| 63 | } |
| 64 | export async function getInstaUserInfo(username) { |
| 65 | let res = await fetch( |
| 66 | "https://www.instagram.com/web/search/topsearch/?query=" + username |
| 67 | ); |
| 68 | let json = await res.json(); |
| 69 | if (json.status != "ok") |
| 70 | throw Error(t({ vi: "Server trả về lỗi", en: "Server response error" })); |
| 71 | console.log(json); |
| 72 | return json; |
| 73 | } |
| 74 | export async function getUidFromUsername(username) { |
| 75 | let json = await getInstaUserInfo(username); |
| 76 | console.log(json); |
no test coverage detected