Git Product home page Git Product logo

anonfile-api's Introduction

๐Ÿ‘‹ Hello there! I'm Nick

  • ๐Ÿ”ญ Iโ€™m currently working on ... Deep Learning Trading
  • ๐ŸŒฑ Iโ€™m currently learning ... React
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on ... Inspiring projects
  • ๐Ÿค” Iโ€™m looking for help with ... Being more pragmatic
  • ๐Ÿ˜„ Fun fact: ... I started programming more than 2 decades ago.
  • ๐Ÿ“ซ How to reach me: ... [email protected]
  • โšก Check out my CodersRank profile
  • โšก Check out my Codecademy profile

nstrydom nstrydom

anonfile-api's People

Contributors

d4r14h avatar dependabot[bot] avatar hentai-chan avatar nstrydom2 avatar stefangreve avatar thedarkw3b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

anonfile-api's Issues

unsupported operand type(s) for -=: 'tuple' and 'int'

I'm getting an error unsupported operand type(s) for -=: 'tuple' and 'int' recently. Seems like it's caused by SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091) and it's trying to retry the connection or something

UA should be able to be set in the CLI as an optional arg

Is your feature request related to a problem? Please describe.
No response

Describe the solution you'd like
I want the user to be able to set the User Agent from the command line as an additional optional argument.

Describe alternatives you've considered
No response

Additional context
No response

Bye Anonfiles

Hi, I just open this issue to inform to the community that, sadly, after working for years, Anonfiles is closing down:

After trying endlessly for two years to run a file sharing site with user anonymity we have been tired of handling the extreme volumes of people abusing it and the headaches it has created for us.
Maybe it is hard to understand but after tens of million uploads and many petabytes later all work of handling abuse was automated through all available channels to be fast as possible.
We have auto banned contents of hundreds of thousands files.
Banned file names and also banned specific usage patterns connected to abusive material to the point where we did not care if we accidental delete thousands of false positive in this process.
Even after all this the high volume of abuse will not stop.
This is not the kind of work we imagine when acquiring it and recently our proxy provider shut us down.

This can not continue.

Domain 4sale.

[email protected]

Source: https://anonfiles.com/

LetsUpload and FileChan, clones of Anonfiles, will be shut down after a while.

Connection aborted

[*] Error -- ('Connection aborted.', timeout('The write operation timed out')).
i got this error when i try to upload a mp4 files (when the size is 2Mo the problem arrives). I think is a problem with the requests library ? Do you know how can I specify the time to let the upload finish ?
Thanks !

Known Issues

  • the upload and download limit caps at around 2MiB/s because of requests_toolbelt (see also: this issue)
  • the CI script broke some time after this commit, though the library still seems to work for the most part

Proxy args need to be added to the CLI

Is your feature request related to a problem? Please describe.
No response

Describe the solution you'd like
The library has proxy support, however it isn't available for use in the CLI. Just add an
argument that takes a proxy server from the user.

Describe alternatives you've considered
No response

Additional context
You should probably find a way to standardize the proxy server option (http, https, socks, etc). What I mean is, the user should maybe include that proxy protocol in the string or by some other way.

Big files (2GB+) can't be uploaded

Describe the bug
Uploading files bigger than 2GB is not supported as requests.post doesn't support it.

To Reproduce
Steps to reproduce the behavior:

  1. Try to upload a file bigger than 2GB.
  2. Use upload = AnonFile().upload("big.zip", true).
  3. upload is None.
  4. The following output is printed:
Upload: big.zip:   0%|          | 0.00/2.06G [00:00<?, ?B/s]
Upload: big.zip: 100%|โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹| 2.06G/2.06G [00:01<00:00, 1.71GB/s]
Upload: big.zip: 100%|โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹| 2.06G/2.06G [00:03<00:00, 664MB/s] 
string longer than 2147483647 bytes

Expected behavior
Files bigger than 2GB should be supported, as anonfiles supports up to 20GB per file.

unsupported operand type(s) for -=: 'tuple' and 'int'

When I try to upload any file using the CLI (anonfile upload -f 'filename'), it starts the progress bar then fails and says unsupported operand type(s) for -=: 'tuple' and 'int'

Screenshots
image

Desktop Information:

  • OS: Kali GNU/Linux Rolling x86_64
  • Anonfile Version: Latest
  • Kernel: 5.19.0-kali2-amd64
  • Python Version: 3.10.8
  • Terminal: Konsole

I installed this with pip3 the day of writing this

Api still working ?

stat: path should be string, bytes, os.PathLike or integer, not NoneType
'NoneType' object has no attribute 'url'
Traceback (most recent call last):
File "/home/raveen/.local/lib/python3.8/site-packages/pyrogram/dispatcher.py", line 217, in handler_worker
await handler.callback(self.client, *args)
File "/home/raveen/Desktop/projects/MUltiFilesB/bot.py", line 59, in anon_up
print(upload.url.geturl())
AttributeError: 'NoneType' object has no attribute 'url'

my usage

Poor design

Basically, the design of this python library is awkward and confusing. Consider a refactor.

[*] Error -- Expecting value: line 1 column 1 (char 0)

When I try to upload a file I receive this error, I already tried importing requests, json etc but doens't worked

That's my code:

file_input = input(Fore.LIGHTRED_EX + " [?] What is the file name? (ex: hello.txt): ")
anon = AnonFile('47d3dxxx...')
file_url = anon.upload_file(file_input)

not working with FreeBSD

Running the command anonfile --help on FreeBSD gives the following error message:

Traceback (most recent call last):
  File "/usr/local/bin/anonfile", line 5, in <module>
    from anonfile.__init__ import main
  File "/usr/local/lib/python3.8/site-packages/anonfile/__init__.py", line 12, in <module>
    from .anonfile import *
  File "/usr/local/lib/python3.8/site-packages/anonfile/anonfile.py", line 84, in <module>
    file_handler = logging.FileHandler(get_logfile_path())
  File "/usr/local/lib/python3.8/site-packages/anonfile/anonfile.py", line 75, in get_logfile_path
    config_dir = get_config_dir()
  File "/usr/local/lib/python3.8/site-packages/anonfile/anonfile.py", line 65, in get_config_dir
    return {
KeyError: 'FreeBSD'

batch file download flag

Add a --batch-file option (similar to youtube-dl) to the download method. This should be implemented as a CLI-only feature.

The API Doesnt work ?

unsupported operand type(s) for -=: 'tuple' and 'int'
Traceback (most recent call last):
File "c:\users\raptex\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\raptex\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\raptex\AppData\Local\Programs\Python\Python39\Scripts\anonfile.exe_main
.py", line 7, in
File "c:\users\raptex\appdata\local\programs\python\python39\lib\site-packages\anonfile_init
.py", line 37, in main
print(f"URL: {upload.url.geturl()}")
AttributeError: 'NoneType' object has no attribute 'url'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.