Skip to content

Commit dfd29b4

Browse files
committed
move web scraping demo information display before output screen
1 parent be1875f commit dfd29b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

wifi_finance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,6 @@ def wifi_finance(symbol):
210210
del response_window
211211
del found_window
212212

213-
if __name__ == "PyDOS":
214-
wifi_finance(passedIn)
215-
else:
216-
print('Enter "wifi_finance.wifi_finance("symbol")" in the REPL or PEXEC command to run.')
217-
print(' A null symbol ("") will default to the Nasdaq Index')
218-
219213
print('\nDemonstration Web "scraping" program. The web sites being used in the')
220214
print('demonstration will often change and break the algorithm used to locate a')
221215
print('stock price. When that happens this program needs to be updated to work')
@@ -230,3 +224,9 @@ def wifi_finance(symbol):
230224
print("and selecting the index you're inerested in. The formatted symbol will be")
231225
print('updated at the end of the URL (not the symbol displayed in the search box.')
232226

227+
if __name__ == "PyDOS":
228+
wifi_finance(passedIn)
229+
else:
230+
print('Enter "wifi_finance.wifi_finance("symbol")" in the REPL or PEXEC command to run.')
231+
print(' A null symbol ("") will default to the Nasdaq Index')
232+

0 commit comments

Comments
 (0)