Если вам нужен 2FA, то код должен прийти в sms, иначе в этом нет смысла
Notification settings: <UNNotificationSettings: 0x281ac0af0; authorizationStatus: Denied, notificationCenterSetting: Disabled, soundSetting: Disabled, badgeSetting: Disabled, lockScreenSetting: Disabled, carPlaySetting: NotSupported, announcementSetting: Disabled, criticalAlertSetting: NotSupported, alertSetting: Disabled, alertStyle: None, groupingSetting: Default providesAppNotificationSettings: No>
DispatchQueue.main.async {
UIApplication.shared.registerForRemoteNotifications()
}
import bs4
import requests
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
r = requests.get("https://prnt.sc/rblzyl", headers=headers)
soup = BeautifulSoup(r.content,'lxml')
img = soup.find(id='screenshot-image')
link = img['src']
print("Ссылка на картинку:{}".format(link))
with open("image.png".format(link),"wb") as f:
f.write(requests.get(link).content)
pip3 install BeautifulSoup4
pip3 install requests
pip3 install lxml
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
r = requests.get("prnt.sc/rblzyl")
soup = BeautifulSoup(r.content)
То что запись A указывает на другой IP вообще не играет роли, правильно?