Skip to main content

This script collects articles from Wall Street Journal and returns it in dict format.

Project description

nsloader

Test PyPI version
This script collects articles from Wall Street Journal and returns it in dict format.

Installing nsloader and Supported Versions


nsloader is not registered on the pypi. You have to download from github directly.

$ python -m pip install nsloader

nsloader is tested by Python 3.10.

Dependencies


Additionaly, you have to execute install playwright in your execution environment.

Usage


To load the Wall Street Journal articles and parse to dictionay format.

Wall Street Journal

NOTE: You have to set 2 enviroment valiables name as WSJ_USERNAME and WSJ_PASSWORD before execution.

>>> from nsloader import wsj
>>> article = wsj.Article()
>>> article.load('https://www.wsj.com/articles/...')
>>> print(article.to_dict())
{"url": "https://www.wsj.com/articles/...", "title": "The Fed ...", "sub_title": "As expected ...",  ... }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsloader-1.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

nsloader-1.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file nsloader-1.1.0.tar.gz.

File metadata

  • Download URL: nsloader-1.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for nsloader-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4d7129c4e1619c34510fcda15e71124c8c82d3202b49072a5044f32e48b86de9
MD5 172e4cfbe4327176aa8c560cfd251cca
BLAKE2b-256 c0e989334f5fe6b59098564b7557baab6277aca5e8d88ab27e30768d010c7180

See more details on using hashes here.

File details

Details for the file nsloader-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nsloader-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for nsloader-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441c2d9de3d22d79b4a2a941777ced3efd87435cd10664ffa3f253c6cdecbfb8
MD5 d089d08079bd465cfc16560494dc020d
BLAKE2b-256 e1c81f798b5731d783ea40338306ad79d0126cd4b53c7ef0cf093e437976fc36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page