Created
August 7, 2019 19:51
-
-
Save mandatoryprogrammer/76328173ab3b4c1f03b6ae15fc25de9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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