Skip to content

Instantly share code, notes, and snippets.

import mechanicalsoup
browser = mechanicalsoup.StatefulBrowser()
headers = {"Connection": "keep-alive",
"Cache-Control": "max-age=0",
"Origin": "https://nid.naver.com",
"Upgrade-Insecure-Requests": "1",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Referer": "https://nid.naver.com/nidlogin.login?svctype=262144&url=http%3A%2F%2Fm.note.naver.com%2Fmobile%2FmobileSendList.nhn",