Giter Site home page Giter Site logo

deliciousirc's Introduction

irclicious.py
=============

Depends
-------
- urwid http://excess.org/urwid/ 
- pydelicious http://code.google.com/p/pydelicious/
- PyYAML http://pypi.python.org/pypi/PyYAML/

Install
-------

This is a preliminary version, just drop ircilicious.py and the config file
somewhere (I put it in ``~/bin/``).

Running ircilicious
-------------------
Edit the ``irclicious.yml`` config file and put your ``delicious.com``
credentials in it, then ``chmod`` accordingly.

Configuration
-------------

the configuration is a yaml file so that's a key/value list so take a look at:
http://fr.wikipedia.org/wiki/Yaml
or
http://en.wikipedia.org/wiki/Yaml

here is a configuration sample:

----- %< -------
--- #YAML:1.1

login: delicioususer
pass: deliciouspassword

exclude_tags:
    - notag
    - enotag
    - osef


scraplist: 'crap.txt'


----- >% -------

	21:07 < nick> howdy
	21:08 < nick> great http://github.com/dzen/deliciousirc/ #delicious, irc#
	21:09 -!- nick [[email protected]] has quit [Remote closed the connection]

If your logs are different, choose:
- sed is your friend
- edit ircilicious.py and adapt the regex ``lutin`` around line 102 

Then::

	$ python irclicious.py nomdufichierdelog

Here, ``ircilicious.py`` would propose the
``http://github.com/dzen/deliciousirc/`` URL with ``nick, delicious, irc`` tags
in an ``ncurses`` interface. You might then view the page with your default
browser, retag it if you feel like it, and post it to delicious.

In addition, you may "scrap" it, meaning that the *domain* (not the URL) would
be added to the ``crap.txt`` file, and irclicious.py would never propose URL
from that domain again.

Have fun !

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.