Questions tagged [stem]

Stem is a Python controller library for Tor.

Stem is a Python controller library that allows applications to interact with Tor (https://www.torproject.org/).

For tutorials and API documentation see stem’s homepage.

Quick Start

To install you can either use…

pip install stem

… or install from the source tarball. Stem supports both the python 2.x and 3.x series. To use its python3 counterpart you simply need to install using that version of python.

python3 setup.py install

After that, give some tutorials a try! For questions or to discuss project ideas we’re available on irc and the tor-dev@ email list.

104 questions
0
votes
3 answers

multiple Tor instances through stem

I am developing a script that creates 3 Tor instances using stem, from stem tutorial "to Russia with love". def print_bootstrap_lines(line): if "Bootstrapped " in line: print(term.format(line, term.Color.BLUE)) def main(): …
o.awajan
  • 19
  • 5
0
votes
1 answer

Tor Stem: public key don't match one in hidden servce descriptor

I am trying to get the public key of a hidden service I created. There are 2 ways, a one from the private key I have, the other is accessing the hidden service descriptor and taking the public key field. I wrote a python script to test both. But,…
CodeLOL
  • 35
  • 5
0
votes
1 answer

How can I read this stem-leaf plot correctly?

Like the title, I used online an online data set for stem-leaf plot. But I don't know how to read it. For example, in the line of Stem 7. and Leaf .5555, why Frequency = 18? And what does the line Each leaf: 4 case(s) mean? Every answer is very…
0
votes
1 answer

Why the stem of word "got " is still "got" instead of "get"?

from stemming.porter2 import stem documents = ['got',"get"] documents = [[stem(word) for word in sentence.split(" ")] for sentence in documents] print(documents) The result is : [['got'], ['get']] Can someone help to explain this ? Thank you !
Jiazhao Li
  • 91
  • 4
0
votes
1 answer

Sending a signal to stem closes the socket

This code: from stem import Signal from stem.control import Controller with Controller.from_port(port=9051) as controller: print('is alive BEFORE ? ') print(controller.is_alive()) try: controller.signal(Signal.HEARTBEAT) …
cmu111
  • 25
  • 4
0
votes
1 answer

How to store stemmed strings into single array?

I am new to python and am just trying to write a simple program that would stem the words in a string and output an array/list that contains the stemmed words but I can seem to get them into a single array. This is the code i have and I included the…
Kmac
  • 3
  • 1
0
votes
2 answers

Get the Hashed Tor Password automated in python

I made a script in python, which allows me to change the Public IP using stem. The script had no problem, but the thing is that the script needs the hashed password in /etc/tor/torrc to authenticate. I want all the others to use my script, but they…
user9053402
0
votes
0 answers

Switching to new Tor identity on Android using QPython

After successfully installing QPython and Orbot on my Android device, I've pip-installed a well-known stem library and tried to use it for changing Tor identity by sending NEWNYM signal to control port. On PC, this code from stem.control import…
Vifonius
  • 43
  • 8
0
votes
1 answer

Stem library hidden service gone away

I'm using stem library in order to control a running tor instance. Problem is that when I use the create_hidden_service API the service is correctly spawned, but after some hours it strangely disappear and is not available anymore. Somebody have…
Utrase
  • 1
0
votes
1 answer

Why "shining" becomes "shin" after lemmatized using python nltk?

there are several words that use "-ing" as present continuous like "shining". but when I try to lemmatize "shining" using nltk, it changes into "shin". the code is this: from nltk.stem import WordNetLemmatizer wordnet_lemmatizer =…
sang
  • 375
  • 2
  • 8
  • 23
0
votes
1 answer

How can I search a dictionary for a nltk stem?

I'm having an issue checking to see if a stemmed word exists in a dictionary. This is for some sentiment analysis work that I am doing. All I am getting back is this error here: Traceback (most recent call last): File "sentiment.py", line 369, in…
Jacob Reed
  • 37
  • 7
0
votes
1 answer

New identity with TOR and Stem

Stem officials docs says that new identity is established by the following: from stem import Signal from stem.control import Controller with Controller.from_port(port = 9051) as controller: controller.authenticate() …
Bartek R.
  • 441
  • 1
  • 8
  • 15
0
votes
0 answers

Custom Solr Stemming filter

I am trying to implement a custom solr filter to stem arabic word, the filter class is as follow but i keep getting the following error "possible analysis error" when indexing the document, i am using Khoja's stemmer public final class…
Moon123
  • 153
  • 3
  • 15
0
votes
1 answer

Add surface/line to 3D stem plot in Matlab

Say I have a 3D stem plot using stem3 stem3(xx,yy,zz,'red') I want to add a line or a semitransparent surface to a height of 550 (zz = 550). is there a way to do this?
Orangeblue
  • 229
  • 1
  • 5
  • 15
0
votes
0 answers

Accessing youtube via stem (tor) gives unable to reach url error

I have combined this example in stem with pytube to measure the time it takes for me to download a youtube video via Tor. Here's the code: import io import pycurl import stem.process from stem.util import term import pickle import socks # SocksiPy…
QPTR
  • 1,620
  • 7
  • 26
  • 47