Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexfilatov/torex
Make requests to Tor network with Elixir
https://github.com/alexfilatov/torex
elixir tor
Last synced: 7 days ago
JSON representation
Make requests to Tor network with Elixir
- Host: GitHub
- URL: https://github.com/alexfilatov/torex
- Owner: alexfilatov
- Created: 2017-09-30T17:46:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T00:19:16.000Z (about 1 year ago)
- Last Synced: 2024-10-08T03:12:36.736Z (about 1 month ago)
- Topics: elixir, tor
- Language: Elixir
- Size: 10.7 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Simple Tor connection library. (Networking)
- fucking-awesome-elixir - torex - Simple Tor connection library. (Networking)
- awesome-elixir - torex - Simple Tor connection library. (Networking)
README
# Torex
[![Coverage Status](https://coveralls.io/repos/github/alexfilatov/torex/badge.svg?branch=main)](https://coveralls.io/github/alexfilatov/torex?branch=main)
[![Hex pm](https://img.shields.io/hexpm/v/torex.svg?style=flat)](https://hex.pm/packages/torex)
[![Hex docs](http://img.shields.io/badge/hex.pm-docs-green.svg)](https://hexdocs.pm/torex)
[![hex.pm downloads](https://img.shields.io/hexpm/dt/torex.svg?style=flat)](https://hex.pm/packages/torex)
[![Project license](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Last Updated](https://img.shields.io/github/last-commit/alexfilatov/torex.svg)](https://github.com/alexfilatov/torex/commits/master)Very simple connector to TOR network. Basically this is HTTPoison client with proxy on Tor node.
Before running this project you need to have tor node running.
To install tor node for macos run this:brew install tor
brew services start torYou'll have tor running on your machine where you can connect on PORT=9050
## Usage
When Tor is up and running add to your app config the following
```elixir
config :torex,
:tor_server,
ip: '127.0.0.1', # note charlist here, not binary
port: 9050
```Make requests:
```elixir
{:ok, contents} = Torex.get(url)
{:ok, result} = Torex.post(url, params)
```## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `torex` to your list of dependencies in `mix.exs`:```elixir
def deps do
[{:torex, "~> 0.1.0"}]
end
```## Contribution
1. Fork it
2. Create feature/bugfix branch
3. Code/fix
4. Commit and push
5. Create Pull RequestDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/torex](https://hexdocs.pm/torex).