You are viewing a single comment's thread from:

RE: [Steempy v0.0.4] A Steem Price Bot written in Python

in #python7 years ago

You have good project here, thanks for sharing!

I'm going to follow your work since I'm beginner in python and this is really interesting for me.

Btw, when I copy/paste your code into my Ide (free Pycharm) editor "complains" because you are using tabs for indentation. :-) If you can, see if you have an option, so your editor would automatically insert 4 spaces every time you use tab for indent. Most, if not all IDE should have this setting.

It is not that important really, but it sort of is standard now a days. just though to mention this. If you can't find this option, then of course don't worry about it. :-)

Sort:  

First off, thank you for the comment! It means alot to get some engagement from my followers. Personally, I use notepad++ to do all of my coding and I find using a tab is the most consistent way to make sure my spacing is correct the entire way through my program. Instead of getting an indentation error for using 7 spaces instead of 8, I can just use 2 Tabs. The consistency is better. If you're having issues just run it from your command line.

I'll look for an option to do that thing you mentioned with notepad++ but, personally, spaces seem like just another thing to worry about. That's just my opinion though. Thanks for the feedback.

Also anyone reading this who does not know how to run this script, at least on windows, you can copy the source once you have Python3 or higher installed, paste it into a notepad or any text editor save it as steempy.py then open a command prompt where you saved the script, and simply type:
python steempy.py

No, don't worry about it, didn't know you are using a notepad. It's all good :-)

Just for your info, I'm running your program on Linux (Manjaro), Python 3.6.1 and it works great :-)

It's not like windows notepad or anything, Notepad++ is a text editor designed for programming, has most features all IDEs have like syntax highlighting, auto-completion, and a lot more. It just doesn't have a "run" built in, so I run all my scripts via command line/shell. Unless, I make a GUI for it of course.

Coin Marketplace

STEEM 0.21
TRX 0.26
JST 0.040
BTC 101666.04
ETH 3693.34
USDT 1.00
SBD 3.13