Opened 7 years ago

Closed 7 years ago

#7505 closed enhancement (implemented)

Tutorial: To Russia With Love

Reported by: atagar Owned by: gsathya
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Keywords: website
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I've been bouncing around tutorial ideas for...
https://stem.readthedocs.org/en/latest/tutorial.html

... and the next that I'd like to go with is something I've been fondly titling "To Russia With Love". The task that it aims to complete is to write a script that starts a tor instance and fetches, say, Google's front page through Russia. This would walk the reader through a couple things:

  1. Starting tor via the stem.process module.
  1. Using the tor instance as a client (we'll likely need to add some methods to make this nicer!).

Child Tickets

Attachments (1)

patch.py (3.9 KB) - added by sreenatha 7 years ago.
A python script that launches Tor and fetches google's home page from a russian exit relay. Internal documentation provided.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 7 years ago by gsathya

Owner: changed from atagar to gsathya
Status: newassigned

I'm mentoring a hackfest in the first week of jan. This sounds like a fine task for someone to do at the hackfest. I'm going to assign this to myself for now.

Changed 7 years ago by sreenatha

Attachment: patch.py added

A python script that launches Tor and fetches google's home page from a russian exit relay. Internal documentation provided.

comment:2 Changed 7 years ago by atagar

Resolution: implemented
Status: assignedclosed

Thanks sreenatha (and I'm very sorry for not replying - your patch came in while I was busy juggling a few other things). Tor provides a torrc option that does exactly what we want, so there's no need to manually manage the circuits.

Just finished writing a tutorial for this...

https://stem.torproject.org/tutorial/to_russia_with_love.html
https://gitweb.torproject.org/stem.git/commitdiff/ecc5f7bcd7d9669521e3b3b9275b18dff98c4270

Cheers! -Damian

Note: See TracTickets for help on using tickets.