Giter Site home page Giter Site logo

developernation / tor-driver-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from excitingtheory/tor-driver-python

0.0 1.0 0.0 59 KB

Demonstration of how to use the Tor Browser and WebDriver in Python.

License: MIT License

Python 100.00%

tor-driver-python's Introduction

tor-driver-python

The demo is a simple crawler that visits a few sites and then generates a report. The crawler is written in Python and uses Selenium to drive the Tor Browser.

Run the demo

  1. Install the Tor Browser.
  2. Run the crawler.
  3. Run the report.

Use with the container:

docker run -it --rm -p 5901:5901 -v "${HOME}/src":/src excitingtheory/kalilinux-xvfb:torbrowser

Start the VNC server:

/opt/start-vnc-server-once.sh

On macOS

With Finder open as the main app. Press cmd-k the "Connect to Server Dialog" will open. Enter vnc://localhost:5901 and the password guestpas when prompted. Dialog can also be found in the finder menu: Go -> Connect to Server

On Windows

Download and install a vnc client like TightVNC and connect to localhost:5901 and the password guestpas when prompted.

Go to the correct directory:

cd /src/tor-driver-python

Run the crawler:

python3 crawler.py

Run the report:

python3 report.py

results

Schema:

{
    "name": "Meow",
    "file": "./results/meow.json",
    "search": "Meow ",
    "orig": "Meow\n",
    "num": "",
    "artifacts": [
        {
            "data": "Jump to content",
            "link": "https://en.wikipedia.org/wiki/Meow#bodyContent",
            "parent": "https://en.wikipedia.org/wiki/Meow"
        },
        {
            "data": "",
            "link": "https://en.wikipedia.org/wiki/Main_Page",
            "parent": "https://en.wikipedia.org/wiki/Meow"
        },
        {
            "data": "",
            "link": "https://en.wikipedia.org/wiki/Wikipedia:Contents",
            "parent": "https://en.wikipedia.org/wiki/Meow"
        }
        ....
    ]
}

References

tor-driver-python's People

Contributors

csfx avatar

Watchers

James Cloos 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.