Skip to main content

Scrape articles from Rodong Sinumn, the North Korean news agency

Project description

rodong.py
=========
> Let us all turn out in the general offensive to hasten final victory in the revolutionary spirit of Paektu!

This Python module gives you programmatic access to the wisdom of the Supreme Leader, and to the revolutionary Juche ideology of the DPRK!

Quick start
-----------
```python
from rodong import RodongSinmun

# Create a scraper
scraper = RodongSinmun()

# List the available sections
print scraper.keys()

# Get the first article in the "Supreme Leader's Activities" section
# NOTE: This will be slow, as it builds the article index.
# subsequent accesses to the 'supreme_leader' list are cached
article = scraper['supreme_leader'][0]

# Print its title, content, and images
print article.title
print '=' * len(article.title)
print article.text
print
print 'Images:'
for i, image_url in enumerate(article.photos):
print "\t[{0}]: {1}".format(i, image_url)
```

Project details


Release history Release notifications

This version
History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
rodong-1.0.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Feb 10, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page