Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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)
```
Release History

Release History

This version
History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rodong-1.0.0.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Feb 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting