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
1 answer

Python to PowerShell, stem: Classes

What would be the posh equivalent for python's: class ControllerError(Exception): class OperationFailed(ControllerError): def __init__(self, code = None, message = None): super(ControllerError, self).__init__(message) self.code = code …
Jaqueline Vanek
  • 1,100
  • 10
  • 20
0
votes
1 answer

how to stem csv file using PorterStemmer in Python?

I am recently doing project in nlp using python. where I need to pre process a csv file which contains text with many row and column.I could became able to stem only simple sentence only. And couldn't able to stem whole csv file at once. How can i…
kiran
  • 21
  • 2
0
votes
1 answer

how to stem large csv file using PorterStemmer in Python?

I am recently doing project in nlp using python. Where I need to preprocess a csv file which contains text with many row and column. I could became able to stem only simple sentence only. And couldn't able to stem whole csv file at once. How can I…
kiran
  • 21
  • 2
0
votes
1 answer

stem not recognizing tor's path

While running Stem's To Russia With Love example, I got the following error: 'tor' isn't available on your system. Maybe it's not in your PATH To solve this, I added the following path to tor_cmd as shown in the example over here: tor_process =…
QPTR
  • 1,620
  • 7
  • 26
  • 47
0
votes
1 answer

'x' must be numeric ERROR in R while trying to create a Leaf and Stem display

I am a beginner at R and I'm just trying to read a text file that contains values and create a stem display, but I keep getting an error. Here is my code: setwd("C:/Users/Michael/Desktop/ch1-ch9 data/CH01") gravity=read.table("C:ex01-11.txt",…
Michael Minkoff
  • 121
  • 1
  • 1
  • 5
0
votes
1 answer

What should be the outcome of stemming a word with apostrophe?

I'm using nltk.stem.porter.PorterStemmer in python to get stems of words. When I get the stem of "women" and "women's" I get different results respectively: "women" and "women'". For my purposes I need to have both words having the same stem. In my…
Diego Aguado
  • 1,604
  • 18
  • 36
0
votes
1 answer

Scan tor exit nodes to access blocked site

I am using STEM library in Python to access Tor. Suppose I have a url which is blocked in my country and I do not know the country from which it will be allowed, how can I scan exit nodes of different countries to find the right exit node for…
Neo
  • 381
  • 3
  • 15
0
votes
1 answer

Controller.from_port is raising error

I am trying to get stem controller. I have started tor as sudo /etc/init.d/tor start which starts tor. Now when in python I run, controller = Controller.from_port() it raises exception that stem.SocketError:[Error 111] Connection refused I looked…
Satys
  • 2,319
  • 1
  • 20
  • 26
0
votes
1 answer

Stem as a Python Tor client fails

I am using Stem to start a Tor process. Using the To Russia with love tutorial as a guide. This is the code: import requests import socket import socks import stem.process SOCKS_PORT = 9150 socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,…
Sachin Kelkar
  • 1,282
  • 2
  • 11
  • 16
-1
votes
1 answer

How to modify word in a for loop in python

Im trying to stem some text in python with SnowballStemmer, but it wont work. Here is the code: import nltk from nltk import SnowballStemmer stem = SnowballStemmer("spanish") def limpiar (texto): texto = texto.split() stemm =…
jimbeam
  • 3
  • 1
-1
votes
1 answer

using meek bridge programmatic

I am working on a tor launcher using stem.process module. my problem is that when i specify tor to use meek bridge, it stop at bootstrapping part. my config: config = { 'SocksPort': '7000', 'ControlPort': '9051', 'UseBridges': '1', 'Bridge': 'meek…
pouya
  • 53
  • 1
  • 7
-1
votes
1 answer

Matplotlib Stem Plot

Using stem, I want display (x,y) values with all the y values above a tolerance using red color and the all the rest using green. Exactly I want to display from the tolerance to maximum value using red and from the tolerance to zero using green. On…
-2
votes
1 answer

stri_replace_all_fixed slow on big data set - is there an alternative?

I'm trying to stem ~4000 documents in R, by using the stri_replace_all_fixed function. However, it is VERY slow, since my dictionary of stemmed words consists of approx. 300k words. I am doing this because the documents are in danish and therefore…
-3
votes
1 answer

Tor API example not works correct

I'm trying to run example named "Using PycURL" from here https://stem.torproject.org/tutorials/to_russia_with_love.html Everything works fine, but in the final i have this some kind of error: TypeError : String argument expected, got 'bytes' Unable…
Abraham Tugalov
  • 1,902
  • 18
  • 25
1 2 3 4 5 6
7