Giter Club home page Giter Club logo

ora-graph's Introduction

O'Reilly Connection Grapher
===============================

Feedback: [email protected]

Requirements:

	Python 2.4
	Firefox (or Mozilla or Deer Park)
	ClientCookie
	GraphViz

Note: This script has been tested on both Windows and Linux.

1. This program relies on CookieClient to deal with Cookies and handle the 
meta-refresh tags involved in the login process. Download and
install version 1.0.3 of CookieClient from the CookieClient project page 
listed below:

	http://wwwsearch.sourceforge.net/ClientCookie/

1.5. Download and install Graphviz.  http://www.graphviz.org/Download.php

2. IMPORTANT: This script needs to authenticate with the O'Reilly network.
If you take a look at your cookie cache after logging into an O'Reilly
network site you will see a number of cookies that all play a part in
authentication and access control.  So, instead of writing some nasty
Python script to handle cookies, gendot uses ClientCookie to piggyback
on the Mozilla cookies.txt 

--> You must change config.py to point to your own cookies.txt file 

--> AND, you must log in to the O'Reilly Connection site to put the
    apropriate cookies in your cookies.txt file.

3. Change config.py - If you go to the Connection site, and view your
own FOAF document, you'll see that you have been assigned a Connection
userId.  Please change centralUserId and rootDudeNick to our id and
your name.  

4. In config.py, maxLevel is set to 2, increase this to 3 at your own
peril, and only increase it beyond 3 if you have the express permission
of O'Reilly.

5. Run the script like this:

    python gendot.py

6. Once the script runs, you'll have a file named "foaf.neato".  To
render this file simply run:

    neato -Tgif foaf.neato

That's it.  Here are some ideas:

- Mess with the preamble and the epilouge in config.py.  Read up on 
graphviz and learn about the many different graphs you can make.

- Figure out how to authenticate to ORA network without that cookie
nastiness.  Me, I'd just prefer config.py hold a username and
password and we just use simple BASIC auth.


Tim O'Brien
[email protected]

ora-graph's People

Contributors

tobrien avatar

Stargazers

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