You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Joca 874c6dfd48 Added sketches from t4 6 years ago
..
example_output Added sketches from t4 6 years ago
font Added sketches from t4 6 years ago
Day-nytimes-20181002.pdf Added sketches from t4 6 years ago
README.md Added sketches from t4 6 years ago
day.py Added sketches from t4 6 years ago
requirements.txt Added sketches from t4 6 years ago

README.md

Programmatic Day

In his book Uncreative Writing, Kenneth Goldsmith explores where the lines between authorship and appropriation lie in the age of digital media. Day is one of his examples of uncreative writing: It is a poem featuring all text published in the New York Times of september 1, 2000. From op-ed to advertisement, everything is set in Times New Roman 12pt.

'I began retyping the day's New York Times, word for word, letter for letter, from the upper left hand corner to the lower right hand corner, page by page.'

Programmatic Day is a small python script to create your own version of Day, based on the homepage of nytimes.com. After running the script you get a PDF with all text of the digital frontpage of today.

drawing drawing

Getting Started

Clone the repository and run the script. The PDF will be saved in the same directory.

Prerequisites

The script is written for Python 3. To install the required libraries run 'pip3 install -r requirements.txt'

Acknowledgments

This script is one of the experiments I did to learn about webscraping using Python, and using the material in derivative work. I'd like to thank the following people for their examples:

  • Ryan Newton, for his post on generating pdf's with ReportLab
  • Code examples for the snippet to let Beautifulsoup only fetch visible elements