Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to chang start date for my request
#1
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=1qK5JBY...1g6xbQtMFI

İmage


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)'
Quote
#2
Hi sirs!
maybe you dont konw chinese, so i change file name & dont input drive or stock name,

& file download, pleas put they at C:\stock, then can running
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Substracting today's date from a date in column of dates to get an integer value firebird 1 253 Jul-04-2019, 06:54 PM
Last Post: Axel_Erfurt
  How to change existing date to current date in a filename? shankar455 1 362 Apr-17-2019, 01:53 PM
Last Post: snippsat
  Date format conversion "/Date(158889600000)/" lbitten 2 408 Nov-29-2018, 02:14 PM
Last Post: Larz60+
  What's the difference b/w assigning start=None and start=" " Madara 1 481 Aug-06-2018, 08:23 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)