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 871505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:39:00+00:00 2026-05-15T10:39:00+00:00

I have a tricky Django problem which didn’t occur to me when I was

  • 0

I have a tricky Django problem which didn’t occur to me when I was developing it. My Django application allows a user to sign up and store his login credentials for a sites. The Django application basically allows the user to search this other site (by scraping content off it) and returns the result to the user. For each query, it does a couple of queries of the other site. This seemed to work fine but sometimes, the other site slaps me with a CAPTCHA. I’ve written the code to get the CAPTCHA image and I need to return this to the user so he can type it in but I don’t know how.

My search request (the query, the username and the password) in my Django application gets passed to a view which in turn calls the backend that does the scraping/search. When a CAPTCHA is detected, I’d like to raise a client side event or something on those lines and display the CAPTCHA to the user and wait for the user’s input so that I can resume my search. I would somehow need to persist my backend object between calls. I’ve tried pickling it but it doesn’t work because I get the Can't pickle 'lock' object error. I don’t know to implement this though. Any help/ideas?

Thanks a ton.

  • 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-15T10:39:00+00:00Added an answer on May 15, 2026 at 10:39 am

    Something else to remember: You need to maintain a browser session with the remote site so that site knows which CAPTCHA you’re trying to solve. Lots of webclients allow you to store your cookies and I’d suggest you dump them in the Django Session of the user you’re doing the screen scraping for. Then load them back up when you submit the CAPTCHA.

    Here’s how I see the full turn of events:

    1. User places search request
    2. Query remote site
    3. If not CAPTCHA, GOTO #10
    4. Save remote cookies in local session
    5. Download image captcha (perhaps to session too?)
    6. Present CAPTCHA to your user and a form
    7. User Submits CAPTCHA
    8. You load up cookies from #4 and submit the form as a POST
    9. GOTO #3
    10. Process the data off the page, present to user, high-five yourself.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tricky problem that I've been messing about with for a few
I have run into a bit of a tricky problem in some C++ code,
I have a django project which has two apps, one is AppA and AppB
We have a WinForms desktop application, which is heavily multithreaded. 3 threads run with
I have a very tricky situation (for my standards) in hand. I have a
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
I have what seems to be a very tricky situation. I would like to
I have what I consider a bit of a tricky question. I am currently
Ok this is a tricky one. I have a list of Sets. I would

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.