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

  • Home
  • SEARCH
  • 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 4344936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:57:59+00:00 2026-05-21T11:57:59+00:00

Could somebody please advise me on how I could write a Python script to

  • 0

Could somebody please advise me on how I could write a Python script to do these things?

  1. Change my IP address to some random proxy address.
  2. Download and display the captcha image and show me the prompt where I can write captcha characters.
  3. Download the main file.

The script should have one input parameter (the address is similar to one of these):

http://www.filesonic.com/file/212720521/Ubuntu.11.04.part1.rar

http://www.filesonic.com/file/212720541/Ubuntu.11.04.part2.rar

It would be called twice as follows:

python dlsonic.py http://www.filesonic.com/file/212720521/Ubuntu.11.04.part1.rar
python dlsonic.py http://www.filesonic.com/file/212720541/Ubuntu.11.04.part2.rar
  • 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-05-21T11:58:00+00:00Added an answer on May 21, 2026 at 11:58 am

    Here’s some basic Python to get you started:

    import urllib2
    response = urllib2.urlopen('http://www.example.com/')
    html = response.read() # This is what is read from the file. In your case,
                           # it'll only read the contents of the webpage.
    

    To change your IP address, you can use some Linux commands to accomplish this (assuming you’re using ethernet here):

    ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up
    ifconfig eth0
    

    And with Python, you can run these with os.system():

    import os
    os.system('ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up')
    os.system('ifconfig eth0')
    

    And to handle command line arguments, like python foo.py bar foo bar bar:

    import sys
    print sys.argv
    

    As for dealing with the CAPTCHA, that will be tough. Are you sure you can’t just do this manually?

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

Sidebar

Related Questions

I'm not brilliant with AJAX but could somebody please write me a quick code
Could somebody please advise how to call post method on load? <!DOCTYPE html PUBLIC
Could somebody please do a rundown of how to programmatically encrypt a config-file in
Could somebody please name a few. I could given time, but this is for
Could somebody please point me in the right direction for learning how to do
Could somebody please explain to me what happens here? I am creating a binding
Could somebody please elaborate on the differences?
Could somebody please tell me what is Memory Page Out Rate. I have seen
Is anybody using Python 2.3 for Leopard? If so, could you please tell me
Could somebody please explain me what is generations in garbage collection? i am reading

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.