Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def get_leads_data( session, lead_type ):
if lead_type == "Need Call":
params = {
"ctl00$cph1$filter_Status": "Need Call",
"__EVENTTARGET": "ctl00$cph1$perPage",
"__EVENTARGUMENT": "",
}
elif lead_type == "Cold Leads":
params = {
"__EVENTTARGET": "clickSG",
"__EVENTARGUMENT": "Cold Leads",
"ctl00$cph1$filter_Status": "Need Call"
}
else:
raise Exception( "Invalid lead type specified!" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.