GithubHelp home page GithubHelp logo

coh2 / pastycake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 9b/pastycake

1.0 2.0 0.0 255 KB

Search paste services for keywords using python

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

pastycake's Introduction

Purpose

Search through Paste services such as pastebin.com for interesting pastes based on keywords

Supported Pastes

  • pastebin.com
  • pastie.org

License

3-Clause "New" BSD License , see the file LICENSE.rst for details.

Files

  • pastycake-snatch.py - outputs to the command line and uses the tracker.txt file to monitor previously seen URLs
  • pastycake-harvest.py - stores data inside of SQLite instead of a text file

Plans

  • Create easy way to add in keywords (done)
  • Replace nesting with generators (done)
  • Add in emailer (done)

pastycake's People

Contributors

9b avatar bsdixoner avatar coh2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pastycake's Issues

option parsing mess

Python 2.7 deprecates optparse in vavor of argparse which has been introduced in the same version, too.
Python < 2.7 (like 2.6) doesn't sport argparse but optparse instead.
Python 3.1 doesn't yield a single search result argparse but ships with optparse.
Python 3.2 comes with argparse and deprecates optparse

What to do about this mess?

switch from distutils to distribute

distribute would allow these things that seem to be amiss (grep -R -l entry_point ~/Doc/Python-2.7.1, grep -R -l entry_point /usr/lib{,64}/python2.7/ | grep distutil) from distutils:

  • entry points (one could remove harvest.py from the source but it would still be an executable upon install [1])
  • entry points (in order to allow add-ons/extensions/plugins/ [2])
  • entry points (requirements spec for extras that are bundled with the package [3]), and finally
  • entry points (execute an egg without having to install it [4])

[5] recommends to either use distutils or distribute, so we're safe anyhow.

[1] http://packages.python.org/distribute/setuptools.html?highlight=entry_points#automatic-script-creation
[2] http://packages.python.org/distribute/setuptools.html?highlight=entry_points#dynamic-discovery-of-services-and-plugins
[3] http://packages.python.org/distribute/setuptools.html?highlight=entry_points#declaring-extras-optional-features-with-their-own-dependencies
[4] http://packages.python.org/distribute/setuptools.html?highlight=entry_points#eggsecutable-scripts
[5] http://guide.python-distribute.org/introduction.html#current-state-of-packaging, 2nd paragraph, last sentence.

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.