Pre-Built APIS by DataKund

DataKund provides some of pre built APIS which are used mostly. These are public APIS, you can use these if don’t want to make your own.

Google APIs

Following are some of Google APIs:-

Basic APIS

You can use basic apis which selenium provides with this tool like opening a url, get pagesource, get current url etc. These are the functions:-

Open

It will open the url provided in the parameters.

dk_object.open(url)

Get Page Title

It returns the title of page opened.

response=dk_object.get_page_title()

Get Page Source

It returns the pagesource of page opened.

response=dk_object.get_page_source()

Get Current Url

It returns the url of page opened.

response=dk_object.get_current_url()

Reload

It reloads the page opened.

dk_object.reload()

Keypress

It perform the keypress passed.

dk_object.keypress("shoes")

Scroll

It scrolls to the end of page.

dk_object.scroll()

End

It ends the session and close the automated chromedriver.

Note

You will need to create dk object again after end().

dk_object.end()

Quit

It quits the datakund application runing in background.

Note

You will need to import datakund library again to start datakund application.

dk_object.quit()