Skip to main content

naverlogin

naverlogin is a tiny module for Naver(Korean portal site) login.

Easy to use

NaverSession, the only class which naverlogin exposes inherits requests.Session and adds two methods(login, logout). It’s obvious what these methods would do.

import re

from naverlogin import NaverSession

naver = NaverSession()
if naver.login('YOUR_ID', 'YOUR_PASSWORD'):
    # Fetch user's information.
    r = naver.get('https://nid.naver.com/user2/help/myInfo.nhn?lang=ko_KR')
    name = re.search(r'<dd class="nic_desc">(.+?)</dd>', r.text).group(1)

    print(u'Hello, {}!'.format(name))

    # Logout immediately to prevent dirty activity logs from being left.
    naver.logout()
else:
    print(u'Login failed - check ID and password.')

Less dependencies

It does not require any javascript emulators, while others might use Selenium, Ghost.py, or SpiderMonkey. It only depends on rsa and requests modules.

Installation

$ pip install naverlogin

Metadata

Release files for naverlogin 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for naverlogin 1.0.2
File Size Uploaded Provenance Actions
naverlogin-1.0.2.tar.gz 2.8 kB Without provenance Details for naverlogin-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for naverlogin 1.0.2
File Interpreter ABI Platform Actions
naverlogin-1.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for naverlogin-1.0.2-py2.py3-none-any.whl

Total release size: 6.4 kB

Security for naverlogin 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page