Почему функция write() pyautogui реализует задержку ключей самостоятельно

#python #pyautogui

Вопрос:

Я отправляю ключи через. pyautogui, это мой код :

 pyautogui.write(df["description"].iloc[0])  

Элемент df["description"].iloc[0] has HTML , который извлекается из CSV-файла, вот он :

 lt;div class="post-body entry-content" id="post-body-1273698268205185937"gt;  lt;centergt;  lt;stylegt; .sn_responsive_1 { width: 320px; height: 250px;} @media(min-width:400px) {.sn_responsive_1 {width: 336px; height: 600px;}} @media(min-width:1100px) {.sn_responsive_1 {width: 600px;height: 330px;}} lt;/stylegt; lt;centergt;lt;!-- New-AC --gt;  lt;scriptgt;  (adsbygoogle = window.adsbygoogle || []).push({}); lt;/scriptgt;lt;/centergt; lt;div id="PostBody"gt; lt;div dir="ltr" style="text-align: left;" trbidi="on"gt; lt;div class="separator" style="clear: both; text-align: center;"gt; lt;/divgt; lt;div style="text-align: justify;"gt; lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;APDCL, AEGCLlt;/bgt; amp;amp; lt;bgt;APGCL.lt;br/gt;Last Date: 31/10/2018. lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt; lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;span style="font-size: medium;"gt;lt;bgt;lt;ugt;Update as on 12th November 2021lt;/ugt;: It is for the information of all concerned that the recruitment process for the post of lt;ugt;OCFA, Sahayak and Driver(fresh)lt;/ugt; category vide employment notice no MD/APDCL/HR/REC (2017-18)/2017/85/119 Dtd 10.08.2018 has been lt;ugt;cancelledlt;/ugt; due to administrative reasons. Official order is lt;a href="https://www.apdcl.org/website/docs/career/Cancellation Notice_OCFA, Sahayak, Driver (Fresh Category)_12112021.pdf" rel="nofollow" target="_blank"gt;herelt;/agt; .lt;br/gt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;span style="font-size: medium;"gt;lt;bgt; lt;br/gt;lt;div class="separator" style="clear: both; text-align: center;"gt;lt;a href="https://blogger.googleusercontent.com/img/a/AVvXsEiZ96FiyhHBSoCoNRopVKADkFNnI16go15OivaxvvQjKW69_8pgP6kMnIii5dBUO5u57FurQ3xCBZDrQ9_zRAVX1i2cLmtiCHi0_XvhbYXeGe8JWCKhUMUNgP8lo75apqLQZT5fcyQz5738lK9FuFOLhmQzXjfyo5H1AXQoUPdNU_h_lV8gbduL9L2r=s1210" style="margin-left: 1em; margin-right: 1em;"gt;lt;/agt;lt;/divgt;lt;br/gt;lt;/bgt;lt;spangt;lt;a name="more"gt;lt;/agt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;span style="font-size: large;"gt;lt;bgt;APDCL, AEGCL amp;amp; APGCL Recruitment 2018 lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/h3gt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt; lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;Applications are invited from candidates having requisite qualifications for appointment in amp;amp;lt;bgt; APGCLlt;/bgt; in the following categories of posts as shown below via lt;ugt;lt;bgt;EMPLOYMENT NOTICE NO.: MD/APDCL/HR/REC (2017-18)/2017/85/119lt;/bgt;lt;/ugt;. lt;span style="background-color: yellow;"gt;These posts need NO prior working experiencelt;/spangt; .lt;br/gt;lt;br/gt;lt;/spangt;lt;/spangt;lt;/spangt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;lt;span style="font-size: large;"gt;APDCL, AEGCL amp;amp; APGCL Recruitment Detailslt;/spangt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/h3gt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;/spangt;lt;/h3gt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt; lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;1. AAO (Assistant Accounts Officer)lt;br/gt;No of posts: lt;/bgt;lt;span style="background-color: yellow;"gt;60lt;/spangt; [APDCL: 35, APGCL: 10, AEGCL: 15]/ [UR: 28, OBC/MOBC: 16,  STP: 7, SC: 4, STH: 4, PWD: 1]lt;br/gt;lt;bgt;lt;br/gt;Educational Qualification: lt;/bgt;Bachelor Degree in Arts, Science or Commerce from a recognized University with minimum 55% marks or its equivalent in B.Com in aggregate or 55% marks in Honors/Major subject (B.Com) or minimum 55% aggregate marks or its equivalent for Arts or Science graduate having Mathematics or Statistics as one of the subjects or 55% marks or its equivalent in Mathematics/Statistics as Honors (BA/B.Sc.)lt;br/gt;lt;br/gt;For departmental candidates (employees of APDCL/APGCL/AEGCL), and those belonging to the Scheduled Caste/ Scheduled Tribe minimum qualifying marks in bachelor degree is 50 %.lt;br/gt;lt;bgt;lt;br/gt;Computer Proficiency: lt;/bgt;A candidate must possess proficiency in computer application and  having diploma certificate in computer application with minimum duration of 3 (three) months.lt;br/gt;lt;br/gt;lt;bgt;Age :lt;/bgt;lt;br/gt;a. 21 to 44 years as on 01.01.2018.lt;br/gt;b. In case of OBC/MOBC candidates, upper age limit is relaxed upto 47 years.lt;br/gt;c. In case of SC/ST candidates, upper age limit is relaxed upto 49 years.lt;br/gt;d. In case of departmental candidates, upper age limit is relaxed upto 45 years.lt;br/gt;lt;br/gt;lt;bgt;Pay: lt;/bgt;16,800 – 60,500/- , GP: 8,700/-lt;br/gt;lt;bgt;lt;br/gt;2. Office cum Field Assistantlt;br/gt;No of posts:lt;/bgt; lt;span style="background-color: yellow;"gt;1000 lt;/spangt;[APDCL: 968, APGCL: 11, AEGCL: 21]/  [UR: 340, OBC/MOBC: 272, STP: 146, SC: 107, STH: 91, PWD: 44]lt;br/gt;lt;br/gt;lt;bgt;Educational Qualification:lt;/bgt; Minimal HSSLC or equivalent examination recognized by Govt.lt;br/gt;lt;bgt;lt;br/gt;Computer Proficiency:lt;/bgt; A candidate must possess proficiency in computer application and having diploma certificate in computer application with minimum duration of 3 (three) months.lt;br/gt;lt;br/gt;lt;bgt;Age :lt;/bgt;lt;br/gt;a. 18 to 44 years as on 01.01.2018.lt;br/gt;b. In case of OBC/MOBC candidates, upper age limit is relaxed upto 47 years.lt;br/gt;c. In case of SC/ST candidates, upper age limit is relaxed upto 49 years.lt;br/gt;d. In case of departmental candidates, upper age limit is relaxed upto 45 years.lt;br/gt;lt;bgt;lt;br/gt;Pay: lt;/bgt;16,800 – 60,500/- , GP: 5,800/lt;br/gt;lt;bgt;lt;br/gt;3. Light Vehicle Driverlt;br/gt;No of posts:lt;/bgt; lt;span style="background-color: yellow;"gt;25lt;/spangt; [APDCL: 25]/ [UR: 12, OBC/MOBC: 7, STP: 3, SC: 2, STH: 1]lt;br/gt;lt;bgt;lt;br/gt;Educational Qualification:lt;/bgt; HSLC or equivalent examination recognized by Govt., must have at least 2 (two) years professional driving licence and must be proficient in traffic rules amp;amp; driving LMV/HMV.lt;br/gt;lt;bgt;lt;br/gt;Age :lt;/bgt;lt;br/gt;a. 18 to 44 years as on 01.01.2018.lt;br/gt;b. In case of OBC/MOBC candidates, upper age limit is relaxed upto 47 years.lt;br/gt;c. In case of SC/ST candidates, upper age limit is relaxed upto 49 years.lt;br/gt;d. In case of departmental candidates, upper age limit is relaxed upto 45 years.lt;br/gt;lt;br/gt;lt;bgt;Pay:lt;/bgt; 12,400 – 47,400/-, GP: 5,500/lt;br/gt;lt;br/gt;lt;bgt;4. Sahayaklt;br/gt;No of posts: lt;/bgt;lt;span style="background-color: yellow;"gt;872lt;/spangt; [APDCL: 620, APGCL: 52, AEGCL: 200]/ [UR: 231, OBC/MOBC: 234, STP: 180, SC: 120, STH: 107]lt;br/gt;lt;br/gt;lt;bgt;Educational Qualification: lt;/bgt;lt;br/gt;a. For APDCL: HSLC or equivalent with ITI in the trade of Wireman/Electrician from Govt. of Assam approved Institute.lt;br/gt;b. For AEGCL: HSLC or equivalent with ITI in the trade of Electrician/Fitter from Govt. of Assam approved Institute.lt;br/gt;c. For APGCL: HSLC or equivalent with ITI in the trade of Wireman/Electrician/ Fitter/Welder/Machinist, from Govt. of Assam approved Institute.lt;br/gt;lt;bgt;lt;br/gt;Age :lt;/bgt;lt;br/gt;a. 18 to 44 years as on 01.01.2018.lt;br/gt;b. In case of OBC/MOBC candidates, upper age limit is relaxed upto 47 years.lt;br/gt;c. In case of SC/ST candidates, upper age limit is relaxed upto 49 years.lt;br/gt;d. In case of departmental candidates, upper age limit is relaxed upto 45 years.lt;br/gt;lt;br/gt;lt;bgt;Pay: lt;/bgt;12,400 – 47,400/-, GP: 4,500/lt;br/gt;lt;br/gt;lt;bgt;Note: lt;/bgt;lt;span style="background-color: yellow;"gt;The candidate must be a citizen of India and domicile of Assam.lt;/spangt; Candidate having adequate knowledge in communicating in Assamese and/or local languages will be preferred. Candidates have to submit documents in proof of domicile at the time of Document verification/Physical Efficiency Test, if called for.lt;br/gt;lt;bgt;lt;br/gt;Application Fee (Non Refundable):lt;/bgt; lt;strikegt;Rs. 500.00 (Rupees Five Hundred only) for General/OBC/MOBC candidates and Rs. 250.00 (Rupees Two Hundred Fifty only) for SC/ST candidates. Application fees are exempted for PWD candidates. Candidate has to pay the application fee through online mode only by using Net Banking/Credit Card/Debit Card.lt;/strikegt;lt;/spangt;lt;/spangt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;For General/OBC/MOBC Candidates: Rs.  100lt;br/gt;For SC/ST Candidates: Rs. 50 lt;/spangt;lt;/spangt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;Sometimes due to lt;igt;lt;bgt;broken transaction at recruiter's endlt;/bgt;lt;/igt;, the amount paid by the candidate does not gets updated in the database immediately. Please check lt;igt;lt;bgt;after 3 (three) working dayslt;/bgt;lt;/igt; from the lt;bgt;date of paymentlt;/bgt; and the payment receipt will be available in the candidate's portal.lt;br/gt;lt;br/gt;In case of multiple payment against same Registration No., the extra amount will be refunded to the account from where it has been deducted. lt;igt;lt;bgt;But, the refund process may take some time after the last date of online application processlt;/bgt;lt;/igt;. lt;br/gt;lt;bgt;lt;br/gt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;lt;span style="font-size: large;"gt;Selection Procedure of APDCL, AEGCL amp;amp; APGCL Recruitmentlt;/spangt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/h3gt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;/spangt;lt;/h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;br/gt;The candidates will have to appear in the written test to be notified in due course. The written test for all the posts mentioned above may be conducted on the same date. The written test shall contain 1 (one) paper of 100 marks as indicated below. The candidates selected through written test will be called for Document Verification for the post of AAO (Assistant Accounts Officer), Office cum Field Assistant and Document verification / Physical Efficiency Test for the post of Sahayak. The final selection list will be prepared based on the marks obtained in the written test only. No TA or DA will be admissible for the journey in connection with written test/ Physical Efficiency Test. The decision of the Selection Board/ Committee for the eligibility or otherwise of a candidate for admissible in the written test shall be final. Inclusion of a candidate's name in the final selection list will not confer him/her the right for appointment, unless the appointing authority is satisfied that the candidate is suitable for appointment in all respects.lt;br/gt;lt;br/gt;Candidates for the post of Sahayak who fails to qualify in  the Physical Efficiency Test, will not be considered for final appointment.lt;br/gt;lt;br/gt;In case of Light Vehicle Driver the candidates have to appear for  a practical test in addition to a written examination which would be notified in due course.lt;br/gt;lt;bgt;lt;br/gt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;lt;span style="font-size: large;"gt;How to Apply for APDCL, AEGCL amp;amp; APGCL Recruitment ?lt;/spangt;lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/h3gt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt; lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span  style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;Eligible and interested candidates are required to apply through online mode only in the “Career” section of APDCL website i.e., lt;igt;lt;bgt;www.apdcl.orglt;/bgt;lt;/igt;. No other means/mode of application shall be accepted. lt;span style="background-color: yellow;"gt;Online submission of the applications will be available on the website between lt;strikegt;18.08.2018lt;/strikegt; lt;strikegt;01.09.2018lt;/strikegt; lt;strikegt;lt;igt;25.08.2018lt;/igt;lt;/strikegt; lt;bgt;01.10.2018lt;/bgt; to lt;strikegt;12.09.2018lt;/strikegt; lt;igt;lt;strikegt;25.09.2018lt;/strikegt; lt;strikegt;19.09.2018lt;/strikegt;lt;/igt; lt;bgt;31.10.2018lt;/bgt;.lt;/spangt;lt;/spangt;lt;/spangt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;br/gt;lt;/spangt; lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;span style="background-color: yellow;"gt;lt;bgt;Online Application for Class - III amp;amp; IV posts (Fresh amp;amp; Experienced Categories) will be closed w.e.f 13.09.2018 to 30.09.2018 and shall be re-opened w.e.f 01.10.2018 to 31.10.2018 due to Technical Maintenance. lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;span  style="background-color: white;"gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt; lt;/bgt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/divgt;lt;div style="text-align: justify;"gt;lt;h3gt;lt;span style="font-family: arial;"gt;lt;span style="font-size: small;"gt;lt;span face='"arial" , "helvetica" , sans-serif'gt;lt;bgt;lt;spangt;lt;/spangt;lt;span style="font-size: large;"gt;Important Web-Links of APDCL Recruitmentlt;/spangt;lt;/bgt;lt;/spangt;lt;br/gt;lt;/spangt;lt;/spangt;lt;/h3gt;lt;/divgt;lt;/divgt;lt;div dir="ltr" style="text-align: left;" trbidi="on"gt;lt;br/gt;lt;table class="tablepress tablepress-id-45"gt;lt;tbody class="row-hover"gt;lt;tr class="row-1 odd"gt;lt;td class="column-1"gt;lt;span style="font-size: small;"gt;lt;bgt;lt;spangt;lt;spangt;lt;spangt;lt;spangt;lt;span style="font-family: arial;"gt;lt;spangt;Online Application Formlt;br/gt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/bgt;lt;/spangt;lt;/tdgt;lt;td class="column-2"gt;lt;span style="font-size: small;"gt;lt;bgt;lt;spangt;lt;spangt;lt;spangt;lt;spangt;lt;span style="font-family: arial;"gt;lt;spangt;lt;a href="https://www.apdcl.net.in/" rel="nofollow" target="_blank"gt;Click Herelt;/agt;lt;br/gt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/bgt;lt;/spangt;lt;/tdgt;lt;/trgt;lt;tr class="row-2 even"gt;lt;td class="column-1"gt;lt;span style="font-size: small;"gt;lt;bgt;lt;spangt;lt;spangt;lt;spangt;lt;spangt;lt;span style="font-family: arial;"gt;lt;spangt;Advertisement Detailslt;br/gt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/bgt;lt;/spangt;lt;/tdgt;lt;td class="column-2"gt;lt;span style="font-size: small;"gt;lt;bgt;lt;spangt;lt;spangt;lt;spangt;lt;spangt;lt;span style="font-family: arial;"gt;lt;spangt;lt;a href="https://www.apdcl.org/irj/go/km/docs/internet/ASSAM/webpage/PDF/20180814_Class_III_IV_Fresh_2018.pdf" rel="nofollow" target="_blank"gt;Link Ilt;/agt; | lt;a href="https://www.apdcl.org/irj/go/km/docs/internet/ASSAM/webpage/PDF/20180814_Class_III_IV_Instructions.pdf" rel="nofollow" target="_blank"gt;Link IIlt;/agt;lt;br/gt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/spangt;lt;/bgt;lt;/spangt;lt;/tdgt;lt;/trgt;lt;/tbodygt;lt;/tablegt;lt;/divgt;lt;span style="font-family: arial;"gt; lt;/spangt; lt;/divgt; lt;div id="AdCode"gt; lt;div style="margin:5px 0;text-align:center;clear:both;"gt; lt;centergt; lt;scriptgt;  (adsbygoogle = window.adsbygoogle || []).push({}); lt;/scriptgt;lt;/centergt; lt;/divgt; lt;/divgt; lt;div style="clear: both;"gt;lt;/divgt; lt;/centergt;lt;/divgt;  

Почему задержка вводится после каждого набираемого слова ? Как я могу устранить задержку ?

Ответ №1:

Установите 0-секундную паузу после каждого вызова PyAutoGUI:

 pyautogui.PAUSE = 0  

Наш вы можете добавить аргумент ключевого слова «интервал» в функцию записи.

 pyautogui.write('Hello world!', interval=0.25) # prints out "Hello world!" with a quarter second delay after each character