Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: SMTPSenderRefused: (530, b'5.7.0 Must issue a STARTTLS command first
Post: SMTPSenderRefused: (530, b'5.7.0 Must issue a STAR...

I'm trying to creating the User Authentication API using FastAPI. My scope is when a new user gets registered via endpoint an email will be sent to verify the JWT token and after verification user wil...
rhat398 General Coding Help 0 3,345 Jul-13-2021, 06:24 PM
    Thread: BeautifulSoup pagination using href
Post: BeautifulSoup pagination using href

I am trying to scrape all thee events from https://www.onthisday.com/events/february/5 I am getting all the events from first page.How can I get other events from the second page and merge into one li...
rhat398 Web Scraping & Web Development 1 2,421 Jun-29-2021, 10:22 PM
    Thread: Create Dict from multiple Lists with duplicate Keys
Post: RE: Create Dict from multiple Lists with duplicate...

Got it!But what if lists lengths are inconsistent how to work around that? Any solution for this kind of scenario?
rhat398 General Coding Help 10 4,087 Jun-26-2021, 08:11 AM
    Thread: Create Dict from multiple Lists with duplicate Keys
Post: RE: Create Dict from multiple Lists with duplicate...

I used the second example it's also giving me this error: Error:Traceback (most recent call last): File "rough.py", line 264, in <module> newdict = create_new_dict() File "rough.p...
rhat398 General Coding Help 10 4,087 Jun-26-2021, 04:32 AM
    Thread: Create Dict from multiple Lists with duplicate Keys
Post: RE: Create Dict from multiple Lists with duplicate...

(Jun-25-2021, 07:42 PM)Larz60+ Wrote: It's assuming that fabric_names is defined as in your first example: fabric_names = ['FABRIC_PETAL_SIGNATURE_COTTON', 'FABRIC_SATIN', 'FABRIC_COTTON_POPLIN_BRAV...
rhat398 General Coding Help 10 4,087 Jun-25-2021, 11:37 PM
    Thread: Create Dict from multiple Lists with duplicate Keys
Post: RE: Create Dict from multiple Lists with duplicate...

(Jun-23-2021, 05:21 PM)Larz60+ Wrote: you are showing ellipsis in your data. In the following solution, I am assuming that this is an error. from CreateDict import CreateDict desigName = ['Catching...
rhat398 General Coding Help 10 4,087 Jun-25-2021, 04:43 AM
    Thread: Create Dict from multiple Lists with duplicate Keys
Post: Create Dict from multiple Lists with duplicate Key...

I have four lists named designName,creatorName,fabric_names and data the data list consist of multiple duplicate values which I want to map it to it's asscociated design name and creator name like: O...
rhat398 General Coding Help 10 4,087 Jun-23-2021, 11:53 AM
    Thread: InvalidSchema(“No connection adapters were found for {!r}”.format(url))
Post: InvalidSchema(“No connection adapters were found f...

What does this error means and how to address this kind of error?I am getting this error Error:Traceback (most recent call last): File "load-more.py", line 146, in <module> response = ses...
rhat398 Web Scraping & Web Development 0 6,544 Jun-11-2021, 08:40 PM
    Thread: Python BeautifulSoup IndexError: list index out of range
Post: Python BeautifulSoup IndexError: list index out of...

import requests from bs4 import BeautifulSoup import csv import time class LightupScraper: results = [] def fetch(self, url): print(f'HTTP GET request to URL: {url}', end='') ...
rhat398 Web Scraping & Web Development 1 6,253 May-28-2021, 11:30 AM
    Thread: Scraping based on years BeautifulSoup
Post: Scraping based on years BeautifulSoup

I am practicing my python skills by scraping different websites and I came across The Hacker News Website I manage to scrape the article's title, links, author names..etc.The problem occurs when i try...
rhat398 Web Scraping & Web Development 0 1,766 May-22-2021, 07:20 PM
    Thread: Pandas DataFrame combine rows by column value, where Date Rows are NULL
Post: Pandas DataFrame combine rows by column value, whe...

Scenerio: Parse the PDF Bank statement and transform into clean and formatted csv file. What I've tried: I manage to parse the pdf file(tabular format) using camelot library but failed to produce the...
rhat398 General Coding Help 0 2,122 May-04-2021, 10:51 PM
    Thread: Name Mashup Program Improvement in Python
Post: RE: Name Mashup Program Improvement in Python

I already tried this split method but output is different than original output.I think requirement is that you have to half the string equally and swap the other halves with each string.splitting the ...
rhat398 General Coding Help 3 2,568 Apr-05-2020, 11:30 AM
    Thread: Name Mashup Program Improvement in Python
Post: Name Mashup Program Improvement in Python

I am learning python and trying to solve different problems i came across this program which is name mashup which is in Get Programming:Learn to code with Python. problem statement: Write a program t...
rhat398 General Coding Help 3 2,568 Apr-04-2020, 11:59 PM

User Panel Messages

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