Coder Social home page Coder Social logo

ceridwen / pdf_namer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agadani/pdf_namer

0.0 2.0 0.0 29 KB

Renames pdfs from various sources based on their titles, and moves them to a given location. I run this through cron to clean up my papers directory after I've spent the day downloading uninformatively named pdfs from USENIX or ACM.

Python 100.00%

pdf_namer's Introduction

pdf_namer

Renames PDFs and PS files from various sources based on their titles, and moves them to a given location. I run this through cron to clean up my papers directory after I've spent the day downloading uninformatively named PDFs from USENIX or ACM.

Install

You need to have Python installed. Compatible with 2.6+ but not Python 3. For parsing PDFs, you need either pdftotext, which is a command-line script distributed as part of Poppler at http://poppler.freedesktop.org/ or packaged as poppler-utils in most Linux distros, or Yusuke Shinyama's excellent pdfminer library, which you can download at https://euske.github.io/pdfminer/ or from PyPi. (The Debian version is now too old.) For parsing PS files, you need pstotext, a command line script from http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm or distributed by most distros.

To use, make certain that pmv is executable and place it somewhere in your executable path. You will need to either hard code or specify the location of rename_by_title.py to the script. That's pretty much it!

Example

avani@gravitas:~/Downloads $ pmv --dir ~/Desktop/To_Read journal.pone.0094346.pdf

Output writing to: /Users/avani/Desktop/To_Read/

Successfully parsed journal.pone.0094346.pdf

Rename of journal.pone.0094346.pdf complete

Title: Capturing_NaturalColour_3D_Models_of_Insects_for_Species_Discovery_and_Diagnostics

pdf_namer's People

Contributors

agadani avatar ceridwen avatar

Watchers

 avatar  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.