Giter Site home page Giter Site logo

nikhilkumarsingh / content-downloader Goto Github PK

View Code? Open in Web Editor NEW
104.0 13.0 62.0 1.16 MB

Python package to download files on any topic in bulk.

License: MIT License

Python 100.00%
python file-download bulk-downloader content-downloader requests ctdl google command-line-tool parallel-download multithreading

content-downloader's Introduction

Indian Pythonista

An avid Pythonista who loves to automate the boring stuff and create utilities.

๐Ÿ“บ YouTube

๐Ÿ“– Blog

๐Ÿฆ Twitter

content-downloader's People

Contributors

abhishek97 avatar akansh97531 avatar ltfschoen avatar nikhilkumarsingh avatar rishabhnambiar 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

content-downloader's Issues

Error in the argparse

```

parser.add_argument("-w", "--website", type = str, default = "",
help = "specify website.")
parser.add_argument("-w", "--website", default = None, type = str,
help = "Specify a particular website to download content from.")

**not allow two the -w** 

When I use ctdl I get this error :/

Hi,

Which kind of information of my pc setup do you require in order to analyze my issue? Sorry I am noob, so you can just tell me about I post it here...
But Initially I use Ubuntu 16.04 on an old Macbook.

The Error on my terminal is like this:

uad@uad:~$ sudo ctdl "letter of guarantee"
Downloading 10 pdf files on topic letter of guarantee and saving to directory: letter-of-guarantee
Traceback (most recent call last):
  File "/usr/local/bin/ctdl", line 11, in <module>
    load_entry_point('ctdl==1.4.5', 'console_scripts', 'ctdl')()
  File "/usr/local/lib/python2.7/dist-packages/ctdl/ctdl.py", line 235, in main
    download_content(**args_dict)
  File "/usr/local/lib/python2.7/dist-packages/ctdl/ctdl.py", line 149, in download_content
    links = search(args['query'], args['file_type'], args['limit'])
  File "/usr/local/lib/python2.7/dist-packages/ctdl/ctdl.py", line 108, in search
    valid_links = validate_links(links)
  File "/usr/local/lib/python2.7/dist-packages/ctdl/ctdl.py", line 82, in validate_links
    urls[link] = {'code': get_url_nofollow(link)}
  File "/usr/local/lib/python2.7/dist-packages/ctdl/ctdl.py", line 64, in get_url_nofollow
    except urllib.error.HTTPError as e:
AttributeError: 'module' object has no attribute 'error'

Thank you for all your efforts. This tool is really awesome. You have a great mind :).
Best regards,

Inconsistent file argument

In ctdl.py it uses -g for the file_type flag, but in the Readme that uses ctdl library it uses -f for file_type flag

[Suggestion] Support multiple proxies

I'm having some problems downloading a big file from a server that only supports one connection. I tried Aria2c but it keeps dropping all additional connections, so it'd be really helpful to have something like content-downloader to pass a list of proxies (maybe a text file) so that it keeps trying every proxy in the list until it has established the maximum number of connections, and also to rotate the proxies if some are offline or stop working while the files is being downloaded.

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.