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
  building functions to validate strings , date etc metro17 2 131 Aug-08-2019, 12:42 PM
Last Post: ichabod801
  Loop do not start for letter matching algoritm phob0s 3 127 Jul-29-2019, 04:31 PM
Last Post: ThomasL
  Problem: Once I cancel the process my program will start working! Hadad 0 79 Jul-24-2019, 04:09 PM
Last Post: Hadad
  Best way of taking a date prefix from a line and forming a file path from it? Skaperen 5 250 Jul-22-2019, 11:50 PM
Last Post: Skaperen
  Pulling & Reading Date from UDF that Compare it to Live Data firebird 4 158 Jul-20-2019, 09:30 AM
Last Post: snippsat
  Substracting today's date from a date in column of dates to get an integer value firebird 1 141 Jul-04-2019, 06:54 PM
Last Post: Axel_Erfurt
  why does my python request cannot work with proxy and cannot get captured by fiddler szhangpy 0 136 Jun-27-2019, 10:48 PM
Last Post: szhangpy
  Python start from a specific string line and write? searching1 1 157 Jun-27-2019, 02:28 PM
Last Post: perfringo
  Date format issue the_dude 11 748 Jun-07-2019, 06:27 AM
Last Post: snippsat
  Date to integer? Scott 2 211 May-18-2019, 05:33 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)