GithubHelp home page GithubHelp logo

theportus / usf-dime-novels Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 211 KB

Python module to interact with the digital Dime Novel collection from the University of South Florida

License: MIT License

Python 99.69% HTML 0.31%

usf-dime-novels's Introduction

USF Dime Novel Digital Collection

Build StatusCoverage Status

Python module to interact with the digital Dime Novel collection from the University of South Florida.

By David J. Thomas, thePortus.com
Instructor of Ancient History and Digital Humanities
Department of History
University of South Florida

For students of the Digital Humanities


CURRENTLY IN DEVELOPMENT, NOT INTENDED FOR RELEASE


The University of South Florida's Digital Collections houses a repository of historic dime novels. Spanning multiple collections with publications spanning many decades, the collection houses a wealth of information. Dime novels have long been a subject of scholarly interest, often reflecting evolving social and cultural concerns. Yet, performing a 'distant reading' of these texts is not easy. This scraper project provides easy automation for acquiring this data in formats designed for text analysis.

Beyond scraping the dime novels, this repo was designed to be reconfigurable, providing templates for performing advanced Python webscraping with only a semester or so of training (you will need to understand classes and inheritence). To do so, simply clone the repo, and make changes needed. The scraper module will provide base templates, create your own scraper that inherits the template to begin scraping pages. You will also need to create data models in the db module to reflect the data that you want to store from the scrape. Once you have scraped successfully, use the export module to output your data into .csvs or .txts. See documentation throughout each of these modules on how to accomplish this.


Installation

Software requirements:You need to install Python 3

Knowledge requirements: A beginner-intermediate understanding of Python and a beginner knowledge of command-line interface. For excellent tutorials on these subjects, check out Codecademy's tutorials on Python and CLI.

Optional: works best if installed in a virtual environment. Directions for OSX, Linux, or if on Directions for Windows

To install the module...

# Clone the repo and move inside the directory
git clone https://github.com/thePortus/dimenovels.git
cd dimenovels
# Install the Python dependencies
pip3 install -r requirements/all.txt

This module also requires that you install Selenium webdriver for your browser of choice. To do so, visit the following...


For developers, automated test running provided by nose2 and coverage. Tests require Firefox webdrivers (see above).

To run tests, make a separate virtualenv. Then, navigate to the repo root directory, enter pip install -r requirements/testing.txt. Set an environment variable named USF_DIME_NOVEL_DB to testing. Finally, run the tests with nose2. Test and coverage results will print to screen and also save in the htmlcov subdirectory.


usf-dime-novels's People

Contributors

theportus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.