Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def get_leads_data( session, lead_type ):
  2. if lead_type == "Need Call":
  3. params = {
  4. "ctl00$cph1$filter_Status": "Need Call",
  5. "__EVENTTARGET": "ctl00$cph1$perPage",
  6. "__EVENTARGUMENT": "",
  7. }
  8. elif lead_type == "Cold Leads":
  9. params = {
  10. "__EVENTTARGET": "clickSG",
  11. "__EVENTARGUMENT": "Cold Leads",
  12. "ctl00$cph1$filter_Status": "Need Call"
  13. }
  14. else:
  15. raise Exception( "Invalid lead type specified!" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement