转自: https://fann.im/blog/2018/05/15/app-store-front-code/
X-Apple-Store-Front header is needed to scrape in App Store.
// 29 or 26 or 9
CN 143465-19,29
US 143441-1,29
JP 143462-9,29
KR 143466-13,29
转自: https://fann.im/blog/2018/05/15/app-store-front-code/
X-Apple-Store-Front header is needed to scrape in App Store.
// 29 or 26 or 9
CN 143465-19,29
US 143441-1,29
JP 143462-9,29
KR 143466-13,29
| // ==UserScript== | |
| // @name bypass tiktok block | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-01-19 | |
| // @description replaces the `store-country-code` cookie with a non-US one | |
| // @author jj | |
| // @match https://www.tiktok.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=tiktok.com | |
| // @grant GM_cookie | |
| // ==/UserScript== |
| import time, json | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.service import Service | |
| from webdriver_manager.chrome import ChromeDriverManager | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.wait import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from parsel import Selector | |
| from bs4 import BeautifulSoup | |
| import pandas as pd |
| import requests | |
| import getpass | |
| import argparse | |
| import threading | |
| import json | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import re | |
| import json | |
| import urllib3 |
| import requests | |
| import re | |
| class Twitter: | |
| def __init__(self): | |
| self.s = requests.Session() | |
| self.get_tokens() | |
| def get_tokens(self): |
| // MIT License | |
| // | |
| // Copyright (c) 2019 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| https://www.instagram.com/api/v1/users/web_profile_info/?username=afra.saracoglu1fan | |
| https://www.instagram.com/api/v1/feed/user/afra.saracoglu1fan/username/?count=9 | |
| https://www.instagram.com/api/v1/feed/reels_media/?reel_ids=52602560028 | |
| {"message":"useragent mismatch","status":"fail"} change useragent Instagram 219.0.0.12.117 Android | |
| Instagram 219.0.0.12.117 |
| publishtime: DateTime.now().subtract(Duration(days: 10)); | |
| _getTime() { | |
| String time; | |
| DateTime now = DateTime.now(); | |
| Duration difference = now.difference(publishtime); | |
| if (difference.inHours > 24) { | |
| var format = DateFormat("dd.MM.yyyy"); | |
| time = format.format(publishtime); |
| flutter_launcher_icons: ^0.11.0 | |
| flutter_native_splash: ^2.2.14 | |
| flutter_icons: | |
| android: true | |
| ios: true | |
| image_path: "assets/images/icon.png" | |
| flutter pub run flutter_launcher_icons |
| def get_user_id(username): | |
| headers = { | |
| 'authority': 'i.instagram.com', | |
| 'accept': '*/*', | |
| 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8', | |
| 'origin': 'https://www.instagram.com', | |
| 'referer': 'https://www.instagram.com/', | |
| 'sec-ch-ua': '"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"', | |
| 'sec-ch-ua-mobile': '?0', |