Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Dice Roll (Find out how many rolls until specified streak)
Post: Dice Roll (Find out how many rolls until specified...

I am trying to figure out how many rolls of dice it would take to get a specified number of snake eye rolls. For instance if I want to get snake eyes 5 times in a row and roll until I get it, how many...
DustinKlent General Coding Help 4 1,076 Jun-12-2021, 12:21 PM
    Thread: Issues Scraping Facebook using facebook_scraper
Post: RE: Issues Scraping Facebook using facebook_scrape...

(Dec-06-2020, 06:38 AM)bowlofred Wrote: word_list is only defined within the for loop. If get_posts is empty, the loop is not run. If there were posts, the filtered_words1 assignment would only be...
DustinKlent General Coding Help 3 1,205 Dec-06-2020, 09:27 PM
    Thread: Issues Scraping Facebook using facebook_scraper
Post: Issues Scraping Facebook using facebook_scraper

I'm scraping facebook groups using Facebook_Scraper but I am experiencing issues with it. Here's the code I have: import operator from facebook_scraper import get_posts from wordlist import words ...
DustinKlent General Coding Help 3 1,205 Dec-05-2020, 11:58 PM
    Thread: Undo interation to make a single list?
Post: RE: Undo interation to make a single list?

(Nov-28-2020, 09:43 PM)bowlofred Wrote: You're printing each one separately. Instead, you can append them to a list. title_list = [] for submission in reddit.subreddit('finance').hot(limit=50): ...
DustinKlent General Coding Help 2 803 Nov-29-2020, 03:41 AM
    Thread: Undo interation to make a single list?
Post: Undo interation to make a single list?

I am using "praw" to pull reddit topic posts in a specific subreddit and here's my code: for submission in reddit.subreddit('finance').hot(limit=50): titles = submission.title.replace("\n", " ") pr...
DustinKlent General Coding Help 2 803 Nov-28-2020, 07:56 PM
    Thread: Exporting Stock Fundamental Data to a CSV file with yahoo_fin
Post: Exporting Stock Fundamental Data to a CSV file wit...

Good Day Everyone, I am attempting to write a python script which can take a list of stocks from a CSV file and pull fundamental stock data for each ticker (Stock price, Volume, P/E ratio, Book Value...
DustinKlent General Coding Help 1 2,083 Sep-13-2020, 12:01 AM
    Thread: Odd behavior with Rock Paper Scissor game
Post: RE: Odd behavior with Rock Paper Scissor game

Thank you. Not sure how I missed that.
DustinKlent General Coding Help 2 815 Aug-27-2020, 03:55 PM
    Thread: Odd behavior with Rock Paper Scissor game
Post: Odd behavior with Rock Paper Scissor game

I am following a tutorial for a rock paper scissor game and I made some changes to it to stray from the tutorial. Everything works except for the fact that sometimes the random choice doesn't appear t...
DustinKlent General Coding Help 2 815 Aug-27-2020, 03:31 PM
    Thread: Web Scraping Inquiry (Extracting content from a table in asubdomain)
Post: RE: Web Scraping Inquiry (Extracting content from ...

This code gets me the first link: import requests from bs4 import BeautifulSoup # Get info from main site url = 'https://mattrode.com/blog/robinhood-collections-list/' headers = {'User-Agent': 'Mozi...
DustinKlent Web Scraping & Web Development 3 2,112 Aug-17-2020, 03:35 AM
    Thread: Web Scraping Inquiry (Extracting content from a table in asubdomain)
Post: Web Scraping Inquiry (Extracting content from a ta...

Good Day, I am very new to Python and am just now learning Beautiful Soup and web scraping methods. I wanted to try to practice one method by automating a very tedious process whereas the script does...
DustinKlent Web Scraping & Web Development 3 2,112 Aug-16-2020, 08:55 PM
    Thread: User input to calculate Area or Radius of Circle
Post: RE: User input to calculate Area or Radius of Circ...

Thank you.
DustinKlent General Coding Help 3 2,258 Nov-10-2019, 06:57 AM
    Thread: User input to calculate Area or Radius of Circle
Post: User input to calculate Area or Radius of Circle

I'm writing a practice script to prompt the user to input "Area" or "Radius", then input the area or radius of a circle to calculate the other. I wanted to use functions to do it. Here's what I've...
DustinKlent General Coding Help 3 2,258 Nov-10-2019, 03:07 AM
    Thread: Find Average of User Input Defined number of Scores
Post: Find Average of User Input Defined number of Score...

I am attempting to write a short practice script that finds the average of a user defined number of scores. Here is the code I have: total = int(input('How many scores are there? ')) total_sum = 0 ...
DustinKlent General Coding Help 1 1,335 Oct-24-2019, 11:53 PM

User Panel Messages

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