Coder Social home page Coder Social logo

hiplicious.py's Introduction

hiplicious.py

Import links and files from a Hipchat room to Delicious.com

Usage

  1. Open hiplicious.py and update the config with your creds (see below)
  2. Run that sh-t

hiplicious.py will find any URLs in your logs (and optionally your file attachments too), and post them to Delicious.com.

  • The message text will be included as a comment (with the URL stripped out).
  • The message author will be included as a tag
  • Any hashtags in the message will be included as tags

Examples

Import everything

python hiplicious.py -a

Import today (put this badboy on a cron)

python hiplicious.py

Import a specific date

python hiplicious.py -d 2012-12-21

Import everything from a specific date until today

python hiplicious.py -c -d 2012-12-21

Config options

DELICIOUS_USERNAME and DELICIOUS_PASSWORD

Pretty self-explanatory

DELICIOUS_BASE_URI

Leave this alone

DELICIOUS_SHARED

no to keep bookmarks private, yes to make them public

HIPCHAT_TOKEN

Your Hipchat API token. You need an admin token.

HIPCHAT_ROOM

For now, hiplicious.py can only do one room. Here's how you find your room's ID:

  • Use the API
  • Log into the Hipchat web app, open the room, click "Room actions", click "Browse chat history," and get the Room ID from the URL

HIPCHAT_BASE_URI

Leave this alone

HIPCHAT_INCLUDE_FILES

Whether to include file attachment URLs. True or False

TODO

  • Allow room id to be passed on the command line
  • Maybe a way to find the room id if passed the room's name
  • Better logging
  • Become smarter and write better code

hiplicious.py's People

Contributors

cz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hiplicious.py's Issues

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.