Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Help to web scrape from 2 diffrent sources
Post: Help to web scrape from 2 diffrent sources
Hello,
I have an Amazon Price Tracker program that takes links from Amazon and prints out the current price and a message that states whether I should buy it or not according to the budget price I se... |
|
Extra |
Web Scraping & Web Development |
0 |
839 |
Jan-05-2023, 12:39 AM |
|
|
Thread: Help with python 'not subscriptable' error
Post: Help with python 'not subscriptable' error
Hello,
I have this chunk of code from my PyQt GUI that gets a result from a SQLite table and uses that result to do a math calculation.
Snippet:
else:
#Connect to the inven... |
|
Extra |
General Coding Help |
3 |
2,111 |
Dec-16-2022, 02:33 AM |
|
|
Thread: [Solved]Help to iterate through code
Post: RE: Help to iterate through code
Thanks!
That helped solved my problem. |
|
Extra |
General Coding Help |
7 |
1,170 |
Dec-11-2022, 10:21 PM |
|
|
Thread: [Solved]Help to iterate through code
Post: RE: Help to iterate through code
Thanks, that helped me understand it better.
The only problem I have now is that my code only outputs the last item in my table/list not the other 2 items.
How would I go about fixing this, so it ... |
|
Extra |
General Coding Help |
7 |
1,170 |
Dec-11-2022, 10:03 PM |
|
|
Thread: [Solved]Help to iterate through code
Post: RE: Help to iterate through code
I would just like to know how to grab each result from the table & plug those results into my code.
This is what's outputted so far:
Output:[('GTX 1660', 'https://www.amazon.ca/MSI-Geforce-192-b... |
|
Extra |
General Coding Help |
7 |
1,170 |
Dec-11-2022, 07:02 PM |
|
|
Thread: [Solved]Help to iterate through code
Post: [Solved]Help to iterate through code
Hello,
I have a code that tracks the price of a product on Amazon.
I made an SQLite table that stores the: Product, URL, Alert_Price.
Furthermore, I would like to be able to have the code iterate t... |
|
Extra |
General Coding Help |
7 |
1,170 |
Dec-10-2022, 08:32 PM |
|
|
Thread: [Solved]Help with BeautifulSoup.getText() Error
Post: RE: Help with BeautifulSoup.getText() Error
Thanks!
I got it to work.
Output:MSI Gaming Geforce GTX 1660 Super 192-bit HDMI/DP 6GB GDRR6 HDCP Support DirectX 12 Dual Fan VR Ready OC Graphics Card
348.98
You Can Buy This Now!Code:
import requ... |
|
Extra |
Web Scraping & Web Development |
5 |
3,784 |
Dec-04-2022, 01:32 AM |
|
|
Thread: [Solved]Help with BeautifulSoup.getText() Error
Post: RE: Help with BeautifulSoup.getText() Error
Thanks for the help.
When I try to run it now, I get this error:
Error:line 41, in checking_price
soup = BeautifulSoup(response.content, 'lxml')
bs4.FeatureNotFound: Couldn't find a tree builder... |
|
Extra |
Web Scraping & Web Development |
5 |
3,784 |
Dec-04-2022, 01:07 AM |
|
|
Thread: [Solved]Help with BeautifulSoup.getText() Error
Post: [Solved]Help with BeautifulSoup.getText() Error
Hello,
I'm trying to test this code that checks the price of an Amazon product, but when I try running it, I get this error:
Error:line 31, in checking_price
product_title = soup.find('span', id=... |
|
Extra |
Web Scraping & Web Development |
5 |
3,784 |
Dec-04-2022, 12:06 AM |
|
|
Thread: Make code non-blocking?
Post: Make code non-blocking?
Hello,
I have this chunk of code:
#-------------------------------------------------------------------------------------
# User Input Function
#------------------------... |
|
Extra |
General Coding Help |
0 |
1,139 |
Dec-03-2022, 10:07 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
Yes, BAXTER waits for a command, so the UserInput() is blocking it.
I tried getting around it by trying multithreading, but it drastically slows down the main loop (BAXTER()) when running the schedu... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-23-2022, 12:16 AM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
I'm still confused on how to run the scheduler with my main code without blocking it.
I tried this, but it only triggers after I've entered a command, not when the code is idle (when I don't enter a... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-19-2022, 01:01 AM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
What was the other error?
The Statement works because I tested it, and it deleted the reminder.
What could the other error be? |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-17-2022, 11:23 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
Got it, thanks.
connection.execute("DELETE FROM reminders WHERE DateTimeStamp = ?", (Scheduled_Time,))
connection.commit()One last thing tough; I'm having a bit of trouble implementing the sc... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-17-2022, 10:41 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
Thanks for your help. I finally got it to work properly!
I scheduled a couple test reminders and they all popped up at their scheduled time.
Output:#New Reminder I scheduled for 1:00 PM
01:00 PM
2022... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-16-2022, 06:10 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
Edit:
Did this:
format = "%Y-%m-%d %H:%M:%S"
scheduled_time2 = datetime.strptime(DateTimeStr, format)No format error but I get this output:
Output:Reminders in Database: ('Test 1', '2022-10-... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-16-2022, 12:17 AM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
I tried converting the DateTime String from the Reminders Table to a DateTime object by doing this:
connection = sqlite3.connect(MainDatabase)
for row in connection.execute("SELECT DateTime FROM Remin... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-15-2022, 11:12 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
If I do time=scheduled_time.timestamp(), (like I did in the code below)
I get this error
Error: time=scheduled_time.timestamp(),
AttributeError: 'tuple' object has no attribute 'timestamp'because th... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-15-2022, 07:10 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
First off, I just want to say thanks a lot for your time & patience in helping me to understand this, I really appreciate it.
So I got it to run, but there are still a couple of things I'm not ... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-15-2022, 03:52 PM |
|
|
Thread: Help adding a loop inside a loop
Post: RE: Help adding a loop inside a loop
Thanks, that helped clean up the SQL part of the code, but I'm still confused on the scheduler part of the code.
So this function takes in the reminder & it's scheduled date and time, then it cal... |
|
Extra |
General Coding Help |
31 |
4,578 |
Oct-10-2022, 07:31 PM |