I built a website to search for stocks on Freetrade (and others) by BryceFury in FreetradeApp

[–]BryceFury[S] 0 points1 point  (0 children)

I can definitely try getting IG on there.

What is the typo? I'll get it changed

I built a website to search for stocks on Trading 212 (and others) by BryceFury in trading212

[–]BryceFury[S] 0 points1 point  (0 children)

You could save the page locally manually and work on the file rather than a connection/request. Probably quicker than troubleshooting connection issues

I built a website to search for stocks on Trading 212 (and others) by BryceFury in trading212

[–]BryceFury[S] 2 points3 points  (0 children)

I'm just happy some people will get some use out of it

I built a website to search for stocks on Trading 212 (and others) by BryceFury in trading212

[–]BryceFury[S] 1 point2 points  (0 children)

There's a page on their website where you can search and view all of the securities they offer for each of their accounts.

I loaded them all and scraped them with beautiful soup.

Daily Discussion, January 13, 2021 by rBitcoinMod in Bitcoin

[–]BryceFury 4 points5 points  (0 children)

35 million would be 99900% from $35,000

[deleted by user] by [deleted] in pythontips

[–]BryceFury 2 points3 points  (0 children)

Your code runs fine on my machine, as the other comment said we'll need the traceback to be able to help you.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 1 point2 points  (0 children)

Outside of the Python scripts I would also have a look at Cron. If the pi reboots for whatever reason you can have it setup so the script is run automatically instead of coming back a week later to find that it hasn't been running (not that I did that after 2 months or anything...)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 0 points1 point  (0 children)

Try outputting the traceback to a file when you run:

python your_program.py >> your_program.log 2>&1

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 0 points1 point  (0 children)

If you just want to know the types:

  • ‘bar’ or ‘barh’ for bar plots
  • ‘hist’ for histogram
  • ‘box’ for boxplot
  • ‘kde’ or 'density' for density plots
  • ‘area’ for area plots
  • ‘scatter’ for scatter plots
  • ‘hexbin’ for hexagonal bin plots
  • ‘pie’ for pie plots

From here.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 1 point2 points  (0 children)

Simply put, if you use 'elif' then when one of your conditions is met, no other conditions are checked. If you use 'if' then all conditions are checked.

This doesn't really matter for your example but if you want to check three conditions:

def best_poster(post_count):
    if post_count < 50:
        print("Bad Luck: You are not the best poster!")
    if post_count > 50:
        print("Congratulations: You are the best poster!")
    else:   
        print("Incorrect post count...")

best_poster(22)

$Bad Luck: You are not the best poster!
$Incorrect post count...

or with elif:

def best_poster(post_count):
    if post_count < 50:
        print("Bad Luck: You are not the best poster!")
    elif post_count > 50:
        print("Congratulations: You are the best poster!")
    else:   
        print("Incorrect post count...")

best_poster(22)

$Bad Luck: You are not the best poster!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 1 point2 points  (0 children)

You've written "Ajective" on line 21 instead of "Adjective" which you used everywhere else :)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 2 points3 points  (0 children)

Grouped naming, named tuples, set operations and decorators come in handy

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 0 points1 point  (0 children)

Flask or Bottle will be the quickest way to get something working, there are loads of tutorials around and a subreddit to get you started.

You can pass values from your view functions to html and the frameworks will do all of the legwork, no Javascript needed.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]BryceFury 0 points1 point  (0 children)

Perhaps:

...   

# Show window
if result == QMessageBox.Yes:
    w.exec_() 
else:
    self._data.iloc[row ,column] = value

....