Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Returning Column and Row Data From Spreadsheet
Post: Returning Column and Row Data From Spreadsheet
Hello all,
I'm trying to use the data of a spreadsheet as two variables to iterate through a test webscraper script using pandas, but I'm a little stumped as to how to use two columns for two variabl... |
|
knight2000 |
General Coding Help |
0 |
441 |
Oct-22-2023, 07:07 AM |
|
|
Thread: Installing Older Version Of Numpy & Pandas
Post: RE: Installing Older Version Of Numpy & Pandas
(Aug-28-2023, 12:12 PM)snippsat Wrote: To use this older code should fist make virtual environment and clone Repo a use older Python version,then do pip install -r requirements.txt
I did a quick tes... |
|
knight2000 |
General Coding Help |
6 |
1,806 |
Aug-30-2023, 10:58 AM |
|
|
Thread: Installing Older Version Of Numpy & Pandas
Post: RE: Installing Older Version Of Numpy & Pandas
(Aug-28-2023, 11:09 AM)Larz60+ Wrote: both of those packages should be backwards compatible.
Try installing as in my previous post, and see what happens.
Sorry for the late reply Larz60+,
Thank yo... |
|
knight2000 |
General Coding Help |
6 |
1,806 |
Aug-30-2023, 10:55 AM |
|
|
Thread: Installing Older Version Of Numpy & Pandas
Post: RE: Installing Older Version Of Numpy & Pandas
Hi Larz60+,
Thank you for your reply.
I'm trying to run this code from github: https://github.com/nittolese/gquestions
I think you need the older versions of numpy and pandas for it to work? (req... |
|
knight2000 |
General Coding Help |
6 |
1,806 |
Aug-28-2023, 06:34 AM |
|
|
Thread: Installing Older Version Of Numpy & Pandas
Post: Installing Older Version Of Numpy & Pandas
Hi all,
I'm still pretty new to the world of Python. I'm using Pycharm and for the first time I'm trying to test a public project from Github. The requirements file list for this project has numpy v... |
|
knight2000 |
General Coding Help |
6 |
1,806 |
Aug-28-2023, 02:31 AM |
|
|
Thread: Advancing Page Numbers
Post: RE: Advancing Page Numbers
That's very cool. Thank you for taking the time to explain more to me about it. I've only dabbled with find/find_all with my basic knowledge, but I'll try learning more about this and trying it out as... |
|
knight2000 |
General Coding Help |
4 |
996 |
May-24-2023, 09:14 AM |
|
|
Thread: Advancing Page Numbers
Post: RE: Advancing Page Numbers
Thank you so much snippsat. I'm going to read that a few times to study and try and learn it.
Pardon my ignorance, but on line 11 of your code:
singel_page = soup.select_one('li.next > a'), coul... |
|
knight2000 |
General Coding Help |
4 |
996 |
May-23-2023, 11:15 AM |
|
|
Thread: Advancing Page Numbers
Post: Advancing Page Numbers
Hi all,
I want to be able to scrape different pages and categories within the same website. I have this code so far:
from bs4 import BeautifulSoup
import requests
cats =['romance_8', 'childrens_1... |
|
knight2000 |
General Coding Help |
4 |
996 |
May-22-2023, 07:09 AM |
|
|
Thread: Advancing Through Variables In A List
Post: Advancing Through Variables In A List
Hi guys,
I'm practising some simple webscraping on a website which has different categories and within each category, has a number of pages. What I'm trying to do is have a list of categories and af... |
|
knight2000 |
General Coding Help |
0 |
522 |
May-13-2023, 03:30 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: RE: Using BeautifulSoup And Getting -1 Results
(Mar-06-2023, 10:23 AM)Axel_Erfurt Wrote: try this
for headings in soup.find_all(['h2', 'h3']):
if str(headings).startswith("<h2"):
print(f"H2, {headings.text.strip()}")
else:
... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-07-2023, 03:25 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: RE: Using BeautifulSoup And Getting -1 Results
I'm pretty close to what I wanted with:
import requests
from bs4 import BeautifulSoup
import pandas
base_url = 'https://www.brides.com/story/how-to-write-the-perfect-best-man-speech'
r = requests.g... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-06-2023, 03:03 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: RE: Using BeautifulSoup And Getting -1 Results
(Mar-03-2023, 09:57 AM)knight2000 Wrote: (Mar-02-2023, 10:08 AM)Axel_Erfurt Wrote: maybe this
import requests
from bs4 import BeautifulSoup
import pandas
url = 'https://www.brides.com/story/how... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-04-2023, 02:25 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: RE: Using BeautifulSoup And Getting -1 Results
(Mar-02-2023, 10:08 AM)Axel_Erfurt Wrote: maybe this
import requests
from bs4 import BeautifulSoup
import pandas
url = 'https://www.brides.com/story/how-to-write-the-perfect-best-man-speech'
r ... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-03-2023, 09:57 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: RE: Using BeautifulSoup And Getting -1 Results
(Mar-02-2023, 10:00 AM)snippsat Wrote: Here some changes,same with h3.
import requests
from bs4 import BeautifulSoup
import pandas
url = 'https://www.brides.com/story/how-to-write-the-perfect-best-... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-03-2023, 09:53 AM |
|
|
Thread: Using BeautifulSoup And Getting -1 Results
Post: Using BeautifulSoup And Getting -1 Results
Hi all,
I thought I would give a go in trying to extract all the H2 Headers and H3 Headers from a webpage and used the following code:
import requests
from bs4 import BeautifulSoup
import pandas
u... |
|
knight2000 |
Web Scraping & Web Development |
10 |
3,004 |
Mar-02-2023, 07:02 AM |
|
|
Thread: Trying to extract style attribute with BeautifulSoup
Post: RE: Trying to extract style attribute with Beautif...
After more trying, I resolved it.
rbs = rbc.find('span', class_ = 'bv-rating-stars-on bv-rating-stars')
rating = rbs['style']
print(rating)Output:width: 97%;Thank you for reading. |
|
knight2000 |
Web Scraping & Web Development |
1 |
3,111 |
Dec-28-2022, 03:06 AM |
|
|
Thread: Trying to extract style attribute with BeautifulSoup
Post: Trying to extract style attribute with BeautifulSo...
Hello all,
In practising some simple web scraping using Requests and BeautifulSoup, I've come across a challenge I haven't tried before and after several attempts that are getting me nowhere, I thoug... |
|
knight2000 |
Web Scraping & Web Development |
1 |
3,111 |
Dec-28-2022, 02:22 AM |
|
|
Thread: How To Set Up And Execute A Python File
Post: RE: How To Set Up And Execute A Python File
I seem to have got it working now.
After trying what Larz60+ said, in Python, I right clicked on the code I had opened and selected "Run Code in Python Console". When I did, I noticed that it was te... |
|
knight2000 |
General Coding Help |
4 |
1,912 |
May-31-2022, 03:26 AM |
|
|
Thread: How To Set Up And Execute A Python File
Post: RE: How To Set Up And Execute A Python File
(May-31-2022, 01:28 AM)Larz60+ Wrote:
from menu choose file --> Open
select directory containing python code
Click OK.
follow any other requests.
Not sure, but once you open the file once,... |
|
knight2000 |
General Coding Help |
4 |
1,912 |
May-31-2022, 02:09 AM |
|
|
Thread: How To Set Up And Execute A Python File
Post: How To Set Up And Execute A Python File
Hi all,
I've been slowly trying different things with Python whenever I get time and last year I created a couple of python files in Pycharm on my windows 10 machine. I found out a month or so later ... |
|
knight2000 |
General Coding Help |
4 |
1,912 |
May-31-2022, 01:17 AM |