Questions tagged [python-beautifultable]
27 questions
6
votes
1 answer
Beautiful Soup can't find the part of the HTML I want
I've been using BeautifulSoup for Web Scraping for a while and this is the first time I encountered a problem like this. I am trying to select the number 101,172 in the code but even though I use .find or .select, the output is always only the tag,…
user7157075
3
votes
2 answers
Scrape google search results titles and urls using Python
I'm working on a project using Python(3.7) in which I need to scrape the first few Google results for Titles and Urls, I have tried it using BeautifulSoup but it doesn't work:
Here's what I have tried:
import requests
from my_fake_useragent import…

Abdul Rehman
- 5,326
- 9
- 77
- 150
2
votes
2 answers
Unable to read html page from beautiful soup
The below code got stuck after printing hi in output. Can you please check what is wrong with this? And if the site is secure and I need some special authentication?
from bs4 import BeautifulSoup
import…

Shravan Yadav
- 1,297
- 1
- 14
- 26
1
vote
1 answer
Python's BeautifulTable modifies output
I'm forming a BeautifulTable table from dict, whose keys are string sets of digits (e.g. "21608", "32099", "02978"). The keys of the dict are to become the first column of my table:
for (key, value) in stations.items():
table.rows.append([key] +…

Outlaw
- 307
- 1
- 3
- 12
1
vote
0 answers
Check if a button is disabled with Beautifulsoup?
Is there any way to check if a button is disabled with beautiful soup. I'm trying to scrape Airbnb page and i want to check if there is a next page or not. I tried :
def findNextPage(soupPage):
''' Finds the next page with listings if it exists…

Abdo
- 49
- 3
1
vote
1 answer
Why does beautifultable in python do not fit content to the table?
just started using beautiful table package, when printing the table the content is printed letter by letter instead of as whole word. when Im running the example code the columns and rows are perfectly fitted to the content. what am I doing wrong?…

אור משעל
- 11
- 1
1
vote
1 answer
What should I do if a class name is present in another class name?
I tried to scrape some data from an e-commerce site and I needed the discount percentage of products which were in a span tag inside a div tag having a class name " VGWI6T" But it also gave me those products discount percentage with class name "…

DataDevourer
- 29
- 7
1
vote
4 answers
How to set cell width size for BeautifulTable?
I'm using the python module BeautifulTable to emit a table to a console. It's wrapping some of the headers and contents and I'd like to set the cell width so it doesn't do that.
I've tried setting the widths via table.column_widths (as per the docs)…

Michael Ray Lovett
- 6,668
- 7
- 27
- 36
1
vote
0 answers
Beautiful table alignment out when sending table with email
My table is printing fine in the console but when I email its alignment gets distorted a bit, any suggestion how to send it perfectly, as its printing in console?
from beautifultable import BeautifulTable
from email.mime.multipart import…

Ahsan Naseem
- 1,046
- 1
- 19
- 38
0
votes
1 answer
FutureWarning: 'BeautifulTable.__getitem__' has been deprecated in 'v1.0.0' and will be removed in 'v1.2.0'. Use 'BeautifulTable.{columns|rows}[key]'
This is my first question on StackOverflow. I am very nervous.
I am new to programming, and doing my best to learn and improve.
I am currently working on a project using Beautiful Table. However, when I run my code, I keep getting this deprecation…

Piko
- 1
- 2
0
votes
1 answer
Cannot find the table tag in the website to scrap information using Beautiful soup
I am trying to obtain the values of this columns (Year, Mom Dy, Hr, Mn, Sec) from the following [website https://www.ngdc.noaa.gov/hazel/view/hazards/tsunami/event-data?maxYear=2022&minYear=2010&country=USA] but I am new using Beautiful soup and I…

oscarmarinoa
- 1
- 2
0
votes
1 answer
BeautifulTable Format Perfect in Terminal, "Broken" in PySimpleGUI Output
I have a table that I have formatted perfectly when printed out on the terminal. I'm using Python's BeautifulTable to format the table, and PySimpleGUI to create a multiline output window. I'd like the table to be printed to the GUI window for…

spickles
- 635
- 1
- 12
- 21
0
votes
1 answer
How to parse HTML tbody data into Python in tabular format
I am new to python and I am trying to parse this data into tabular format in Python. I have considered examples but unable to get desired result.
Can someone please help me on this
Kupon in % 36,520
Erstes…

Yogita Negi
- 17
- 4
0
votes
1 answer
How can i scrape all data at once from a website which shows the response only after scrolling?
I am trying to scrape the name of college and addresses from a site : https://www.collegenp.com/2-science-colleges/ , but the problem is that i am only getting the data of first 11 college present in the list and not getting data of others.
I had…

Cyber God
- 1
- 1
0
votes
0 answers
Web Page Scraping with BeautifulSoup
I am new and I am trying to the links of each products for this web page all subpages (1-8): https://www.sodimac.cl/sodimac-cl/category/scat359268/Esmaltes-al-agua
I have a loop to go over each page but for some reason on page 7 it only brings 20…

ruben_rosa
- 1
- 1