Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Created June 27, 2022 15:24
Show Gist options
  • Save ganigithub/63f5dc546cbd899db5a6ddd2ad7eeaff to your computer and use it in GitHub Desktop.
Save ganigithub/63f5dc546cbd899db5a6ddd2ad7eeaff to your computer and use it in GitHub Desktop.
import json
import pyperclip
def minute_data(self,x_day_chart,y_day_chart,x_min_chart,y_min_chart,x_minute_url,y_minute_url,x_response,y_response,x_data,y_data):
#convert day to minute
sleep(2)
pg.click(x_day_chart , y_day_chart, interval=1)
#select 1 minute
pg.click(x_min_chart, y_min_chart , interval=1)
#click on minute url
pg.click(x_minute_url, y_minute_url , interval=1)
#click on Response
pg.click(x_response, y_response , interval=1)
#click on text
pg.click(x_data, y_data , interval=1)
#copying data
sleep(1)
pg.hotkey('ctrl', 'a')
sleep(1)
pg.hotkey('ctrl', 'c')
data = pyperclip.paste()
data = json.loads(data)
self.d1 = self.final_data(data)
return self.d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment