Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Read csv file from Yahoo Finance
Post: RE: Read csv file from Yahoo Finance
You are absolutely right! I got the error after logging out Yahoo. It says "Unauthorized", "Invalid cookie".
Is there a way to work around this or any other python modules can do it? I would like to r... |
|
ian |
Data Science |
3 |
4,670 |
Sep-09-2019, 07:47 PM |
|
|
Thread: Read csv file from Yahoo Finance
Post: Read csv file from Yahoo Finance
I am trying use of url as below with error. But I tried url manually ok. Please advise. Thanks
import pandas as pd
import numpy as np
url = f'https://query1.finance.yahoo.com/v7/finance/download/X.TO... |
|
ian |
Data Science |
3 |
4,670 |
Sep-09-2019, 02:30 AM |
|
|
Thread: take over control of mouse/keyboard
Post: take over control of mouse/keyboard
My script periodically needs to control mouse/keyboard to do things for a few seconds then give the control back to user. This script just disable them, not what I want. Please advise. Thanks.
impor... |
|
ian |
General Coding Help |
1 |
3,308 |
Dec-29-2018, 05:59 AM |
|
|
Thread: Moving Mouse
Post: Moving Mouse
I use pyautogui to move the mouse but found I can only move to right edge (1920) of the 1st monitor. Is there a way to move farther (on my 3rd monitor) by using it?
import pyautogui
pyautogui.moveTo(... |
|
ian |
General Coding Help |
1 |
2,350 |
Dec-24-2018, 07:56 PM |
|
|
Thread: Copy & Paste Web Page
Post: RE: Copy & Paste Web Page
Sorry, I may not make clear. I only need all text on webpage, not all html. For example, If I
1. Launch https://www.google.com
2. Press Ctrl+a -- select All
3. Press Ctrl+c -- copy the selection
4. P... |
|
ian |
Web Scraping & Web Development |
2 |
8,427 |
Dec-24-2018, 04:56 PM |
|
|
Thread: Copy & Paste Web Page
Post: Copy & Paste Web Page
Is there a way to copy all text on a webpage and paste in a variable in Python 3.62 ?
I am looking for a solution that does not use SendKeys("^a",0)/SendKeys("^c",0) |
|
ian |
Web Scraping & Web Development |
2 |
8,427 |
Dec-24-2018, 03:49 PM |
|
|
Thread: What key pressed?
Post: What key pressed?
I test the code below but not sure how to catch non-ASCII key, like Enter, Esc and so on. Thanks
import msvcrt
while True:
if msvcrt.kbhit():
print(msvcrt.getch()) |
|
ian |
General Coding Help |
2 |
4,988 |
Jul-29-2018, 01:26 AM |
|
|
Thread: wx webview event
Post: wx webview event
when a webpage loading, it generates event more than once. Google in the code below, has the event fired twice. some webpage has more than 10 times. it is because of multiple frames or something. I wa... |
|
ian |
Web Scraping & Web Development |
1 |
4,443 |
Jun-03-2018, 12:57 AM |
|
|
Thread: SetValue to get event fired
Post: SetValue to get event fired
self.myRadioButton has an event function setup: On_Click_myRadioButton(self, event).
When click on it, the function is run. Is it possible to get the event function run when using self.myRadioButton.... |
|
ian |
GUI |
1 |
2,471 |
May-25-2018, 02:51 PM |
|
|
Thread: save 2d array to file and load back
Post: RE: save 2d array to file and load back
Is it a way to keep y same type (list) as x after loaded? Thanks. |
|
ian |
Data Science |
3 |
18,302 |
May-18-2018, 04:44 AM |
|
|
Thread: save 2d array to file and load back
Post: save 2d array to file and load back
I tried to save 2 dimensional array to a file and load it back. But not sure how to fix it. please advise. thanks.
import numpy as np
x = [['ABC', 123.45], ['DEF', 678.90]]
np.savetxt('text.txt',x)
y ... |
|
ian |
Data Science |
3 |
18,302 |
May-18-2018, 02:29 AM |
|
|
Thread: Event for wx.grid
Post: Event for wx.grid
I use wx.grid.Grid on a wx form.
I need to get an event fired only when I hit Enter key after typing in text in a grid cell. Is it possible? Thanks. |
|
ian |
GUI |
1 |
2,517 |
May-16-2018, 02:09 AM |
|
|
Thread: Event fired multiple times
Post: Event fired multiple times
Setting up below is to get the event fired when a webpage loaded. I am wondering why self.On_Web_View_Loaded() will be called many times when a webpage loaded. Is there a way to just fire once for eac... |
|
ian |
GUI |
1 |
2,220 |
May-12-2018, 03:12 PM |
|
|
Thread: Set wx.html2.WebView invisible
Post: Set wx.html2.WebView invisible
Is there a way to set wx.html2.WebView invisible and then switch back to visible? thanks. |
|
ian |
GUI |
1 |
2,170 |
May-12-2018, 02:51 AM |
|
|
Thread: Extract numbers from string
Post: Extract numbers from string
I need to find way to extract numbers from a string but the following not quick right. I need to get [98.15, 0.97, 1.00, 118506]
import re
a = 'C.1 str 98.15 +0.97increase +1.00%increase 118,506 ... |
|
ian |
General Coding Help |
1 |
2,825 |
Apr-28-2018, 03:42 AM |
|
|
Thread: wx.html2.WebView Methods
Post: RE: wx.html2.WebView Methods
ok, figured it out. Just simply use them working just fine:
wx.html2.WebView.SelectAll,
wx.html2.WebView.Copy,
wx.html2.WebView.Paste |
|
ian |
GUI |
4 |
3,663 |
Apr-27-2018, 02:53 PM |
|
|
Thread: parsing table
Post: RE: parsing table
When I use 'Inspect element' of IE11, I can see all tags in that table. |
|
ian |
Web Scraping & Web Development |
10 |
13,219 |
Apr-27-2018, 12:16 PM |
|
|
Thread: wx.html2.WebView Methods
Post: RE: wx.html2.WebView Methods
I have done that part already and able to browse webpages by using wx.html2.WebView.
After load a webpage, what I need is to select all on the webpage, copy and paste into a variable.
I see wx.html2.W... |
|
ian |
GUI |
4 |
3,663 |
Apr-27-2018, 11:29 AM |
|
|
Thread: wx.html2.WebView Methods
Post: wx.html2.WebView Methods
I am looking for sample codes for the following wx.html2.WebView methods to copy selection into a variable. Is there any? Thanks.
wx.html2.WebView SelectAll, Copy & Paste |
|
ian |
GUI |
4 |
3,663 |
Apr-27-2018, 03:50 AM |
|
|
Thread: parsing table
Post: RE: parsing table
Yes, the typical table ok to parse. The table in url below has one <tbody> with 100 <tr>s but cannot be found by following code
import requests
from bs4 import BeautifulSoup
url = 'https:/... |
|
ian |
Web Scraping & Web Development |
10 |
13,219 |
Apr-26-2018, 05:28 PM |