How to chang start date for my request - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to chang start date for my request (/thread-15704.html) |
How to chang start date for my request - xyz987 - Jan-28-2019 He every body, sorry about my englist not very good! I have one question about to chang web start date. This is chinese stock web, I want to catch the history data, but I can`t chang the date for my request. I had try to search google, but i according to do, it only clear the start date. So, please please tell me, is python can`t to catch?? my code name is chanese, if want to run it, please put at E:\Information\Investment web address : http://www.cnyes.com/twstock/ps_historyprice/1101.htm code address: https://drive.google.com/open?id=1qK5JBYSekl7QhorAwaDWs41g6xbQtMFI I had try some code,as follows but can`t chang web date jsstart = "document.getElementById('ctl00_ContentPlaceHolder1_startText').removeAttribute('value')" jsstart = "$('input [id=ctl00_ContentPlaceHolder1_startText]').removeAttr('readonly')" jsstart = "$('input [id=ctl00_ContentPlaceHolder1_startText]').attr('readonly',false)" jsstart = "$('input[id=ctl00_ContentPlaceHolder1_startText]').attr('value','classSelectTextStart')" driver.find_element_by_id('ctl00_ContentPlaceHolder1_startText').send_keys(classSelectTextStart) driver.find_element_by_id('ctl00_ContentPlaceHolder1_startText').removeAttr('value','') driver.find_element_by_id('ctl00_ContentPlaceHolder1_startText').clear() driver.find_element_by_id('ctl00_ContentPlaceHolder1_startText').send_keys(classSelectTextStart) jsstart_value = 'document.getElementById("ctl00_ContentPlaceHolder1_startText").value=(classSelectTextStart)' RE: How to chang start date for my request - xyz987 - Jan-29-2019 Hi sirs! maybe you don t konw chinese, so i change file name & don t input drive or stock name, & file download, pleas put they at C:\stock, then can running |