leadguru-jobs 0.718.0__py3-none-any.whl → 0.719.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {leadguru_jobs-0.718.0.dist-info → leadguru_jobs-0.719.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.718.0.dist-info → leadguru_jobs-0.719.0.dist-info}/RECORD +5 -5
- lgt_jobs/lgt_common/slack_client/slack_client.py +13 -0
- {leadguru_jobs-0.718.0.dist-info → leadguru_jobs-0.719.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.718.0.dist-info → leadguru_jobs-0.719.0.dist-info}/top_level.txt +0 -0
@@ -37,7 +37,7 @@ lgt_jobs/lgt_common/pubsub/messages.py,sha256=rm7uKbxwDTWJqsVA8Kee-4YT58bThjCEV2
|
|
37
37
|
lgt_jobs/lgt_common/pubsub/pubsubfactory.py,sha256=rfUDooYuhBQ2pE9FdDxZOpXjbrvlpiiQLCGOtnTFbSg,2204
|
38
38
|
lgt_jobs/lgt_common/slack_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
lgt_jobs/lgt_common/slack_client/methods.py,sha256=ctKF_1UHEmSWaRsoGEgMZicVabV7eEufZ7pjxdMAx8g,1455
|
40
|
-
lgt_jobs/lgt_common/slack_client/slack_client.py,sha256=
|
40
|
+
lgt_jobs/lgt_common/slack_client/slack_client.py,sha256=x3JNoj107SCNUHZFYgeQv46Coi_hrO-xEL8mZxVGBTM,15248
|
41
41
|
lgt_jobs/lgt_common/slack_client/web_client.py,sha256=WCu8mqYhauuxp9iDAMsjocchKD78iWdcnbu7Ozdyzq8,3448
|
42
42
|
lgt_jobs/lgt_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
lgt_jobs/lgt_data/analytics.py,sha256=yfrFPXrBofzZqUNn479JkrbZXDa2ljgk-Le0YrQ9rew,21690
|
@@ -108,7 +108,7 @@ lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
108
108
|
lgt_jobs/services/k8_manager.py,sha256=bXpka9psIQ5UJ6QG_e4xolmE_3gtmNrzzZeL03bJ62I,995
|
109
109
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
110
110
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
111
|
-
leadguru_jobs-0.
|
112
|
-
leadguru_jobs-0.
|
113
|
-
leadguru_jobs-0.
|
114
|
-
leadguru_jobs-0.
|
111
|
+
leadguru_jobs-0.719.0.dist-info/METADATA,sha256=6Yn4FVdrwQ6YXYtfmWiWhgvuMIEDBEwlLWq_uMFFTTI,1399
|
112
|
+
leadguru_jobs-0.719.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
113
|
+
leadguru_jobs-0.719.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
114
|
+
leadguru_jobs-0.719.0.dist-info/RECORD,,
|
@@ -214,19 +214,32 @@ class SlackClient:
|
|
214
214
|
headers = {'User-Agent': user_agent}
|
215
215
|
response = requests.post(f"{self.base_url}{SlackMethods.confirm_email}", data=payload, headers=headers)
|
216
216
|
result = response.json()['ok'] if response.status_code == 200 else False
|
217
|
+
|
218
|
+
print(f"Result is {result}")
|
217
219
|
if not result:
|
220
|
+
print("Start pyppeteer")
|
218
221
|
try:
|
219
222
|
async def send_code():
|
223
|
+
print("Launch browser")
|
220
224
|
browser = await launch(headless=True)
|
221
225
|
page = await browser.newPage()
|
226
|
+
|
227
|
+
print("Go to Slack")
|
222
228
|
await page.goto('https://slack.com/signin', waitUntil='networkidle2')
|
223
229
|
|
230
|
+
print("Type email")
|
224
231
|
await page.waitForSelector('input#signup_email')
|
225
232
|
await page.type('input#signup_email', email)
|
226
233
|
await asyncio.sleep(1.324)
|
234
|
+
|
235
|
+
print("Press the button to submit")
|
227
236
|
button = await page.querySelector('button#submit_btn')
|
228
237
|
await button.tap()
|
238
|
+
|
239
|
+
print("Wait for the next page")
|
229
240
|
await page.waitForSelector('input[aria-label="digit 1 of 6"]')
|
241
|
+
|
242
|
+
print("Close the browser")
|
230
243
|
await browser.close()
|
231
244
|
|
232
245
|
asyncio.run(send_code())
|
File without changes
|
File without changes
|