Go to file
Stefano ff963491f3 Fix wrong build command 2022-02-06 09:57:39 +01:00
LICENSE Create LICENSE 2021-11-26 17:46:54 +01:00
README.md Fix wrong build command 2022-02-06 09:57:39 +01:00
go.mod Implement early version of command get 2021-11-26 11:40:47 +01:00
go.sum Implement early version of command get 2021-11-26 11:40:47 +01:00
main.go Modify Search functions to take a slice of keyword as argument 2022-02-04 14:25:47 +01:00
pb.go Add progresss bar implementation 2021-11-26 11:38:16 +01:00
search.go Modify Search functions to take a slice of keyword as argument 2022-02-04 14:25:47 +01:00
table.go Add SortByColumn function and improve some functions 2021-11-26 11:39:51 +01:00
url.go Implement early version of command get 2021-11-26 11:40:47 +01:00
xdcc.go Add argument to set InsecureSkipVerify when creating tls Config 2022-02-03 13:34:40 +01:00

README.md

XDCC Command Line Tools

This project provides a simple command line tool which allow you to perform search and retrieval of files on the IRC network through the XDCC protocol. It is based on the popular goirc library.

Features

  • File search from multiple search engines.
  • It allows to download multiple files at the same time.

Installation

Assuming you have the latest version of Go installed on your system, you can use the buid command to get an executable:

git clone https://github.com/ostafen/xdcc-cli.git
cd xdcc-cli
go build -o xdcc .

Usage

To initialize a file search, simply pass a list of keywords to the search subcommand like so:

foo@bar:~$ xdcc search keyword1 keyword2 ...

For example, to search for the latest iso of ubuntu, you could simply write:

foo@bar:~$ xdcc search ubuntu iso

If the command succedeeds, a table, similar to the following, will be displayed:

File Name File Size URL
ubuntu-20.04-desktop-amd64.iso 2.50GB ...
... ... ...

A part from file details, each row will contain an url of the form irc://network/channel/bot/slot, which identifies the file on the IRC network. To download one or more file, simply pass a list of url to the get subcommand like so:

foo@bar:~$ xdcc get url1 url2 ... [-o /path/to/an/output/directory]

Alternatively, you could also specify a .txt input file, containing a list of urls (one for each line), using the -i switch.

Notes

This software has been written as a development exercise and comes with no warranty. Use it at your own risk. Moreover, the developer is not responsible for any illecit use of it.