Skip to content

Instantly share code, notes, and snippets.

@mandatoryprogrammer
Created August 7, 2019 19:51
Show Gist options
  • Select an option

  • Save mandatoryprogrammer/76328173ab3b4c1f03b6ae15fc25de9e to your computer and use it in GitHub Desktop.

Select an option

Save mandatoryprogrammer/76328173ab3b4c1f03b6ae15fc25de9e to your computer and use it in GitHub Desktop.
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