An unofficial Python Anonfiles.com API
We are happy to announce the release of anonfile 1.0.0 🎉
This release includes updated dependencies and incorporates more robust testing. Check out our changlog for a more detailed list of changes. We recommend users upgrade to this version.
Please report any issues with the release on the anonfile issue tracker. New feature suggestions can be submitted in the discussions panel here
Makes further improvements to the CLI:
--batch-file
option for the download method--check
(for duplicates) option to the download method; this can be disabled
with the --no-check
method. It's enabled by default and may require further
user-input in case the target directory contains a file with the same name as
the issued download command--user-agent
and --proxies
flag to the CLI; these fields were also
added to the AnonFile
constructorAs for the main library, the following changes have been added since the last release:
ParseResponse
data class now contains a ddl
field; it contains a direct
download link if this structured was returned by a download method, else None
""
to "undefined"
. This change has no effect
that would require any further actions from youAdds the enable_logging
parameter to the upload and download method. This feature
stores the target URL in a global configuration file. It's located in
%LOCALAPPDATA%/anonfile
$HOME/Library/Application Support/anonfile
$HOME/.config/anonfile
There are two functions you can use to easily access these paths in code:
from anonfile import get_config_dir, get_logfile_path
config_dir, logfile = get_config_dir(), get_logilfe_path()
print(f"{config_dir=}\n{logfile=}")
This feature is turned off by default in the library, and turned on by default
in the built-in CLI. Furthermore, the --verbose
option is now also turned on by
default in the CLI; if that's something you don't want you can turn it off again
using the --no-verbose
flag.
requests
and requests-toolbelt
dependenciestest_anonfile.py
to be more robust by adding a test for .mkv
video format (see also: #50 )requests_html
as dependency and improves download performancetqdm
progressbar support to upload
and download
# get help
anonfile [download|upload] --help
# 1. enable verbose for progressbar feedback, else run silent
# 2. both methods expect at least one argument
anonfile --verbose download --url https://anonfiles.com/93k5x1ucu0/test_txt
anonfile --verbose upload --file ./test.txt
faker
dependency from 8.1.2 to 8.1.3Full revamp of the projects structure and some dependencies have been removed over more lightweight options.
Major changes include:
This release reflects a more robust retry strategy for making http like requests.
This release incorporates newest patch in which the API URI's are updated in the code reflecting the new URI for https://anonfiles.com/ API. All of the anonymous file hosting websites have changed the URI for the API. For example, the URI used to be https://anonfiles.com/api to https://api.anonfiles.com/.
This is a pre-alpha release for community testing. Alpha release will be based on the effectiveness and accuracy of this release. Feedback welcome.