Giter Site home page Giter Site logo

niftyarticles's Introduction

#What is NiftyArticles

NiftyArticles is a small Python script which lets you identify and save articles from inside webpages. It is based on Readability. Update 10.02.2011

#Installation

  • Download NiftyArticles QT4
  • Download NiftyArticles GTK
  • Download readability.js
  • Each version depends on readability.js, please download that file and place it in the same directory as the niftyarticle script.

#The installation details for each version is located inside the script file. Usage (QT4 version)

To get a full list of options, run: python niftyarticles-qt.py --help OR if you made it executable, /path/to/niftyarticles-qt.py --help

save an article from ubuntu.com

python niftyarticles-qt.py -u http://www.ubuntu.com/project/derivatives Help for the QT4 version

#The script has been developed and tested on Python 2.6.6 / Ubuntu Maverick

  • Install the required packages: python-qt4 libqt4-webkit

  • Ubuntu or Debian

  • sudo apt-get install python2.6 python-qt4 libqt4-webkit

  • (Optional) Mark the script as executable

  • chmod +x niftyarticles-qt.py

##Usage Examples: python niftyarticles-qt.py --help

save an article from ubuntu.com

python niftyarticles-qt.py -u http://www.ubuntu.com/project/derivatives

show the browser window, load images, enable java applets

python niftyarticles-qt.py -b -i -v -u http://www.ubuntu.com/project/canonical-and-ubuntu

to run the script on a server with no GUI available, you must install xvfb

sudo apt-get install xvfb

then you can do

xvfb-run -a python niftyarticles-qt.py -u http://www.ubuntu.com/project/derivatives

Webkit Reference http://webkitgtk.org/reference/index.html

Source code (QT4)

#!/usr/bin/env python """

NiftyArticles v0.4, Qt4 version

Made by Florentin Sardan florentinwww (at) gmail.com

Project's page: http://www.betterprogramming.com/niftyarticles-extract-articles-from-any-webpage-with-python-webkit-and-readability.html My portfolio: http://www.betterprogramming.com/

The script has been developed and tested on Python 2.6.6 / Ubuntu Maverick

Install the required packages: python-qt4 libqt4-webkit Ubuntu or Debian sudo apt-get install python2.6 python-qt4 libqt4-webkit

(Optional) Mark the script as executable chmod +x niftyarticles-qt.py

Usage Examples: python niftyarticles-qt.py --help

save an article from ubuntu.com

python niftyarticles-qt.py -u http://www.ubuntu.com/project/derivatives

show the browser window, load images, enable java applets

python niftyarticles-qt.py -b -i -v -u http://www.ubuntu.com/project/canonical-and-ubuntu

to run the script on a server with no GUI available, you must install xvfb

sudo apt-get install xvfb

then you can do

xvfb-run -a python niftyarticles-qt.py -u http://www.ubuntu.com/project/derivatives

#Webkit Reference http://webkitgtk.org/reference/index.html

niftyarticles's People

Contributors

florentin avatar

Stargazers

 avatar Jeff Blake avatar Andrew Shaffer avatar  avatar Decifrador avatar  avatar Moisès Macià avatar Carl Saturnino avatar

Watchers

 avatar

Forkers

starvalley

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.