Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:26:33+00:00 2026-06-17T18:26:33+00:00

This is a general question about whether it is possible, and if so how,

  • 0

This is a general question about whether it is possible, and if so how, to automate the download of a scribd.com search result document.

Scenario:

I have a Scribd account and find a document I want. I normally I then have to click the download button to start the download.

Any ideas for automating this? I’m using the scribd api and python to automatically extract document IDs based on automated queries, but once I get the doc_id’s I have to physically go to each doc page and click the download button to get the physical txt/pdf file. I want to automate this step as well.

Any Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:26:35+00:00Added an answer on June 17, 2026 at 6:26 pm

    Looking at the python-scribd documentation or the scribd API reference, any object that can give you a document ID or website URL can also give you a download URL. Or, if you already have a document ID, you can just call get to get an object that can give you a download URL.

    Most likely, you’ve got a Document object, which has this method:

    get_download_url(self, doc_type=’original’)

    Returns a link that can be used to download a static version of the document.

    So, wherever you’re calling get_scribd_url, just call get_download_url.

    And then, to download the result, Python has urllib2 (2.x) or urllib.request (3.x) built into the standard library, or you can use requests or any other third-party library instead.

    Putting it all together as an example:

    # do all the stuff to set up the api_key, get a `User` object, etc.
    
    def is_document_i_want(document):
        return document.author == "Me"
    
    urls = [document.get_download_url() for document in user.all()
            if is_document_i_want(document)]
    
    for url in urls:
        path = urllib.parse.urlparse(url).path
        name = os.path.basename(path)
        u = urllib.request.urlopen(url)
        with open(name, 'w') as f:
            f.write(u.read())
        print('Wrote {} as {}'.format(url, name))
    

    Presumably you’re going to want to use something like user.find instead of user.all. Or, if you’ve already written the code that gets the document IDs and don’t want to change it, you can use user.get with each one.

    And if you want to post-filter the results, you probably want to use attributes beyond the basic ones (or you would have just passed them to the query), which means you need to call load on each document before you can access them (so add document.load() at the top of the is_document_i_want function). But really, there’s nothing complicated here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is a fairly general question about whether people should be using brackets on
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question about MVC as a pattern, but in this case
This is a general question about character encoding when using MD5 libraries in various
This is a general question about mongodb database design, but the reason for my
So this is more of a general question about apps and techniques rather than
This question is about 64-bit Java apps in general, although I came upon it
I have a general question about inheritance in the .NET framework, lets say you
This is a general question about backbone.js and javascript, I'm intermediate in javascript: If
General question about the stability of SQLCipher in Android, and whether the github readme

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.