Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: webscrapping links from pandas dataframe
Post: RE: webscrapping links from pandas dataframe

You should follow these steps:- 1.> Import Libraries: Import the necessary libraries, including pandas for DataFrame manipulation, requests for making HTTP requests, and libraries for text process...
Gaurav_Kumar Web Scraping & Web Development 2 2,305 Aug-28-2023, 12:07 PM
    Thread: Selenium fields containing a word
Post: RE: Selenium fields containing a word

Yes, you can achieve this using Selenium in combination with Python. You can use the find_element_by_id method to locate the <select> elements by their id attribute, and then you can use the get...
Gaurav_Kumar Web Scraping & Web Development 3 2,859 Aug-22-2023, 12:35 PM
    Thread: Regular Expression
Post: RE: Regular Expression

The issue you're facing is because of a small mistake in your regular expression pattern. The correct pattern should be </p> instead of <p>. Here i have updated your code:- import re s ...
Gaurav_Kumar Web Scraping & Web Development 6 5,395 Aug-21-2023, 12:03 PM
    Thread: Web scraper
Post: RE: Web scraper

If you are a beginner in Python technology then you should firstly clear your all basic concepts of python web development. After then you can switch to python web scrapping. Then you can follow all ...
Gaurav_Kumar Web Scraping & Web Development 8 4,394 Aug-18-2023, 12:45 PM
    Thread: Webapp for creating sheet music
Post: RE: Webapp for creating sheet music

Creating a web app for alternative music notation with features like exporting to PDF, printing, and editing involves both front-end and back-end development. Since you have some experience with Pytho...
Gaurav_Kumar Web Scraping & Web Development 2 1,471 Aug-17-2023, 12:38 PM
    Thread: Python output didn't write properly
Post: RE: Python output didn't write properly

The indentation for the loop where you're writing the data to the final.csv file seems to be incorrect. Additionally, you are overwriting the final.csv file for each row, which results in only the las...
Gaurav_Kumar Web Scraping & Web Development 1 1,945 Aug-16-2023, 12:38 PM
    Thread: Start at python Networkin
Post: RE: Start at python Networkin

Here's a recommended starting point for beginners in Python networking: 1.> Basics of Networking Concepts 2.> Python Socket Programming 3.> Requests Library 4.> Network Libraries 5.> N...
Gaurav_Kumar Web Scraping & Web Development 6 6,364 Aug-14-2023, 12:21 PM
    Thread: email scraper_help
Post: RE: email scraper_help

It seems like you're trying to use Selenium to scrape emails from a website, but you're encountering an error related to the webdriver initialization. The error message indicates that you're trying to...
Gaurav_Kumar Web Scraping & Web Development 6 6,798 Aug-11-2023, 12:24 PM
    Thread: I use switch_to.window, how to keep edge at a minimized ?
Post: RE: I use switch_to.window, how to keep edge at ...

It seems like you're trying to automate a web interaction using the Selenium library in Python. However, you're facing issues with window handling and element locating. Here's what I understand from y...
Gaurav_Kumar Web Scraping & Web Development 1 1,837 Aug-10-2023, 12:27 PM
    Thread: Soup('A')
Post: RE: Soup('A')

1.> soup('a') is not referring to a dictionary, but it's actually filtering and extracting all <a> tags from the parsed HTML, returning a ResultSet (a list-like object). 2.> The code tags ...
Gaurav_Kumar Web Scraping & Web Development 6 2,539 Aug-09-2023, 11:49 AM
    Thread: web scraping with <br> tag
Post: RE: web scraping with <br> tag

The issue might be with the way you're extracting the name and speech data from the HTML structure. The name data is not directly within the <p> elements, so you need to adjust your code to prop...
Gaurav_Kumar Web Scraping & Web Development 1 2,079 Aug-08-2023, 12:13 PM
    Thread: Automating Facebook Posts
Post: RE: Automating Facebook Posts

Automating file uploads using Selenium can be achieved by simulating the file input element's behavior. To upload images to Facebook using Selenium, you can follow these steps: 1.> Locate the File...
Gaurav_Kumar Web Scraping & Web Development 2 1,396 Aug-07-2023, 12:34 PM
    Thread: How to extract links from grid located on webpage
Post: RE: How to extract links from grid located on webp...

It seems that you are trying to extract links from the given URL using Selenium and the Chrome WebDriver. However, there are some issues in the way you are trying to locate the elements. Use By.CSS_S...
Gaurav_Kumar Web Scraping & Web Development 5 1,474 Aug-04-2023, 12:43 PM
    Thread: Place QT Window in the middle
Post: RE: Place QT Window in the middle

It seems like there are a few issues in your code that might be causing the window positioning problem. DPI Scaling: Instead of manually calculating the DPI scaling, you can use Qt's QApplication me...
Gaurav_Kumar GUI 10 2,255 Aug-03-2023, 12:15 PM
    Thread: NoReverseMatch at /
Post: RE: NoReverseMatch at /

The error you are getting is due to reverse of the URL pattern for the 'search_results' view with the keyword arguments {'check_in_date': '', 'check_out_date': ''}. Since these values are empty string...
Gaurav_Kumar Web Scraping & Web Development 2 1,277 Aug-02-2023, 12:47 PM
    Thread: API Request / JSON
Post: RE: API Request / JSON

As you are using the requests library in Python to make a POST request to the NFIB SBET API. The 400 response you are getting indicates that there is likely an issue with the request you are sending t...
Gaurav_Kumar Web Scraping & Web Development 3 988 Aug-01-2023, 10:14 AM
    Thread: How to Prevent Double Submission in Django
Post: RE: How to Prevent Double Submission in Django

You can implement the Post/Redirect/Get (PRG) pattern and use Django's built-in features to protect against duplicate form submissions. Here's how you can modify your HandleChannelFormView to handle ...
Gaurav_Kumar Web Scraping & Web Development 1 1,457 Jul-31-2023, 06:52 AM
    Thread: entry widget
Post: RE: entry widget

Wehn you set the state of an Entry widget to DISABLED, it becomes non-editable, and by default, it appears in a grayed-out "disabled" state with a white background, which might not look good. To keep ...
Gaurav_Kumar GUI 5 1,541 Jul-28-2023, 09:11 AM
    Thread: can webflow be used as a front end?
Post: RE: can webflow be used as a front end?

Yes, you can definitely use Webflow for designing the user interface (UI) and FastAPI as the backend to handle the server-side logic and database interactions. This approach is often referred to as a ...
Gaurav_Kumar Web Scraping & Web Development 3 1,408 Jul-26-2023, 12:18 PM
    Thread: Request doesnt work?
Post: RE: Request doesnt work?

When you will run your program in Dbug mode there you will see requests.exceptions.ConnectTimeout This exception occurs when the connection to the server takes too long, and the maximum number of ret...
Gaurav_Kumar Web Scraping & Web Development 10 5,535 Jul-24-2023, 12:47 PM

User Panel Messages

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