Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Django images will not load
Post: RE: Django images will not load

You need to import the media folder. Put these lines of code in your urls.py from django.conf import settings from django.conf.urls.static import static urlpatterns = [ #urls #... ]+ static(s...
mactron Web Scraping & Web Development 3 3,012 Jul-15-2023, 01:10 PM
    Thread: How to Prevent Double Submission in Django
Post: How to Prevent Double Submission in Django

I would like to prevent double submission in Django. The problem arises when the user clicks on the back button in the browser. I know that I can use JavaScript, but I would like to fix the issue usin...
mactron Web Scraping & Web Development 1 1,595 Jul-14-2023, 12:29 PM
    Thread: Review my Django & BeautifulSoup Scraper
Post: Review my Django & BeautifulSoup Scraper

I have some Python background, but this is my very first time working with Django. So I would appreciate it if someone could review my code to ensure that I'm on the right path. scrape_product_data ...
mactron Code Review 0 877 Jul-02-2023, 09:44 PM
    Thread: Code works but doesn't give the right results
Post: RE: Code works but doesn't give the right results

Please make this more readable and add code into the code block. # your code
mactron General Coding Help 2 772 Jun-22-2023, 02:08 AM
    Thread: While Loop Does Not Work Properly
Post: RE: While Loop Does Not Work Properly

Added print(str(e)) to display error: Error: Failed to parse the HTML content. 'RequestHandler' object has no attribute 'get_random_proxy' UPDATE: Issue resolved! [Image: https://imgur.com/Y74wJau....
mactron General Coding Help 4 983 Jun-22-2023, 01:04 AM
    Thread: While Loop Does Not Work Properly
Post: RE: While Loop Does Not Work Properly

Probably, because proxies are bad. No issue with good proxies.
mactron General Coding Help 4 983 Jun-21-2023, 06:20 PM
    Thread: While Loop Does Not Work Properly
Post: While Loop Does Not Work Properly

I am scraping some data from a local website, and everything works fine except for the while loop for proxies. I'm not exactly sure where the issue lies. The order of the proxy process and the output ...
mactron General Coding Help 4 983 Jun-21-2023, 11:46 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020