-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhatsbot.js
14 lines (14 loc) · 14.4 KB
/
whatsbot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var puppeteer = require("puppeteer")
async function scrape(url) {
var browser = await puppeteer.launch({headless:false})
var page = await browser.newPage();
await page.goto(url)
await page.setDefaultTimeoutNavigation(0)
await page.waitForSelector("._1GGbM > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > span:nth-child(1) > span:nth-child(1)")
var jeny = await page.$("._1GGbM > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > span:nth-child(1) > span:nth-child(1)")
await jeny.click()
var textbox = await page.$("#pane-side > div:nth-child(1) > div > div > div:nth-child(13) > div > div > div._1C6Zl > div._7W_3c > div.fqPQb > span > span")
var msg = 1
await textbox.type("BeeMovieScriptAccordingtoallknownlawsofaviationthereisnowayabeeshouldbeabletoflyItswingsaretoosmalltogetitsfatlittlebodyoffthegroundThebeeofcoursefliesanywaybecausebeesdontcarewhathumansthinkisimpossibleYellowblackYellowblackYellowblackYellowblackOohblackandyellowLetsshakeitupalittleBarryBreakfastisreadyOomingHangonasecondHelloBarryAdamOanyoubelievethisishappeningIcantIllpickyouupLookingsharpUsethestairsYourfatherpaidgoodmoneyforthoseSorryImexcitedHeresthegraduateWereveryproudofyousonAperfectreportcardallBsVeryproudMaIgotathinggoinghereYougotlintonyourfuzzOwThatsmeWavetousWellbeinrow118000ByeBarryItoldyoustopflyinginthehouseHeyAdamHeyBarryIsthatfuzzgelAlittleSpecialdaygraduationNeverthoughtIdmakeitThreedaysgradeschoolthreedayshighschoolThosewereawkwardThreedayscollegeImgladItookadayandhitchhikedaroundthehiveYoudidcomebackdifferentHiBarryArtiegrowingamustacheLooksgoodHearaboutFrankieYeahYougoingtothefuneralNoImnotgoingEverybodyknowsstingsomeoneyoudieDontwasteitonasquirrelSuchahotheadIguesshecouldhavejustgottenoutofthewayIlovethisincorporatinganamusementparkintoourdayThatswhywedontneedvacationsBoyquiteabitofpompunderthecircumstancesWellAdamtodaywearemenWeareBeemenAmenHallelujahStudentsfacultydistinguishedbeespleasewelcomeDeanBuzzwellWelcomeNewHiveOitygraduatingclassof915ThatconcludesourceremoniesAndbeginsyourcareeratHonexIndustriesWillwepickourjobtodayIhearditsjustorientationHeadsupHerewegoKeepyourhandsandantennasinsidethetramatalltimesWonderwhatitllbelikeAlittlescaryWelcometoHonexadivisionofHonescoandapartoftheHexagonGroupThisisitWowWowWeknowthatyouasabeehaveworkedyourwholelifetogettothepointwhereyoucanworkforyourwholelifeHoneybeginswhenourvaliantPollenJocksbringthenectartothehiveOurtopsecretformulaisautomaticallycolorcorrectedscentadjustedandbubblecontouredintothissoothingsweetsyrupwithitsdistinctivegoldenglowyouknowasHoneyThatgirlwashotShesmycousinSheisYeswereallcousinsRightYourerightAtHonexweconstantlystrivetoimproveeveryaspectofbeeexistenceThesebeesarestresstestinganewhelmettechnologyWhatdoyouthinkhemakesNotenoughHerewehaveourlatestadvancementtheKrelmanWhatdoesthatdoOatchesthatlittlestrandofhoneythathangsafteryoupouritSavesusmillionsOananyoneworkontheKrelmanOfcourseMostbeejobsaresmallonesButbeesknowthateverysmalljobifitsdonewellmeansalotButchoosecarefullybecauseyoullstayinthejobyoupickfortherestofyourlifeThesamejobtherestofyourlifeIdidntknowthatWhatsthedifferenceYoullbehappytoknowthatbeesasaspecieshaventhadonedayoffin27millionyearsSoyoulljustworkustodeathWellsuretryWowThatblewmymindWhatsthedifferenceHowcanyousaythatOnejobforeverThatsaninsanechoicetohavetomakeImrelievedNowweonlyhavetomakeonedecisioninlifeButAdamhowcouldtheyneverhavetoldusthatWhywouldyouquestionanythingWerebeesWerethemostperfectlyfunctioningsocietyonEarthYoueverthinkmaybethingsworkalittletoowellhereLikewhatGivemeoneexampleIdontknowButyouknowwhatImtalkingaboutPleaseclearthegateRoyalNectarForceonapproachWaitasecondOheckitoutHeythosearePollenJocksWowIveneverseenthemthiscloseTheyknowwhatitslikeoutsidethehiveYeahbutsomedontcomebackHeyJocksHiJocksYouguysdidgreatYouremonstersYoureskyfreaksIloveitIloveitIwonderwheretheywereIdontknowTheirdaysnotplannedOutsidethehiveflyingwhoknowswheredoingwhoknowswhatYoucantjustdecidetobeaPollenJockYouhavetobebredforthatRightLookThatsmorepollenthanyouandIwillseeinalifetimeItsjustastatussymbolBeesmaketoomuchofitPerhapsUnlessyourewearingitandtheladiesseeyouwearingitThoseladiesArenttheyourcousinstooDistantDistantLookatthesetwoOoupleofHiveHarrysLetshavefunwiththemItmustbedangerousbeingaPollenJockYeahOnceabearpinnedmeagainstamushroomHehadapawonmythroatandwiththeotherhewasslappingmeOhmyIneverthoughtIdknockhimoutWhatwereyoudoingduringthisTryingtoalerttheauthoritiesIcanautographthatAlittlegustyouttheretodaywasntitcomradesYeahGustyWerehittingasunflowerpatchsixmilesfromheretomorrowSixmileshuhBarryApuddlejumpforusbutmaybeyourenotupforitMaybeIamYouarenotWeregoing0900atJGateWhatdoyouthinkbuzzyboyAreyoubeeenoughImightbeItalldependsonwhat0900meansHeyHonexDadyousurprisedmeYoudecidewhatyoureinterestedinWelltheresalotofchoicesButyouonlygetoneDoyouevergetboreddoingthesamejobeverydaySonletmetellyouaboutstirringYougrabthatstickandyoujustmoveitaroundandyoustiritaroundYougetyourselfintoarhythmItsabeautifulthingYouknowDadthemoreIthinkaboutitmaybethehoneyfieldjustisntrightformeYouwerethinkingofwhatmakingballoonanimalsThatsabadjobforaguywithastingerJanetyoursonsnotsurehewantstogointohoneyBarryyouaresofunnysometimesImnottryingtobefunnyYourenotfunnyYouregoingintohoneyOursonthestirrerYouregonnabeastirrerNooneslisteningtomeWaittillyouseethesticksIhaveIcouldsayanythingrightnowImgonnagetananttattooLetsopensomehoneyandcelebrateMaybeIllpiercemythoraxShavemyantennaeShackupwithagrasshopperGetagoldtoothandcalleverybodydawgImsoproudWerestartingworktodayTodaysthedayOomeonAllthegoodjobswillbegoneYeahrightPollencountingstuntbeepouringstirrerfrontdeskhairremovalIsitstillavailableHangonTwoleftOneofthemsyoursOongratulationsSteptothesideWhatdyougetPickingcrudoutStellarWowOoupleofnewbiesYessirOurfirstdayWearereadyMakeyourchoiceYouwanttogofirstNoyougoOhmyWhatsavailableRestroomattendantsopennotforthereasonyouthinkAnychanceofgettingtheKrelmanSureyoureonImsorrytheKrelmanjustclosedoutWaxmonkeysalwaysopenTheKrelmanopenedupagainWhathappenedAbeediedMakesanopeningSeeHesdeadAnotherdeadoneDeadyDeadifiedTwomoredeadDeadfromtheneckupDeadfromtheneckdownThatslifeOhthisissohardHeatingcoolingstuntbeepourerstirrerhumminginspectornumbersevenlintcoordinatorstripesupervisormitewranglerBarrywhatdoyouthinkIshouldBarryBarryAllrightwevegotthesunflowerpatchinquadrantnineWhathappenedtoyouWhereareyouImgoingoutOutOutwhereOutthereOhnoIhavetobeforeIgotoworkfortherestofmylifeYouregonnadieYourecrazyHelloAnothercallcominginIfanyonesfeelingbravetheresaKoreandelion83rdthatgetstheirrosestodayHeyguysLookatthatIsntthatthekidwesawyesterdayHolditsonflightdecksrestrictedItsOKLouWeregonnatakehimupReallyFeelingluckyareyouSignherehereJustinitialthatThankyouOKYougotarainadvisorytodayandasyouallknowbeescannotflyinrainSobecarefulAsalwayswatchyourbroomshockeysticksdogsbirdsbearsandbatsAlsoIgotacoupleofreportsofrootbeerbeingpouredonusMurphysinahomebecauseofitbabblinglikeacicadaThatsawfulAndareminderforyourookiesbeelawnumberoneabsolutelynotalkingtohumansAllrightlaunchpositionsBuzzbuzzbuzzbuzzBuzzbuzzbuzzbuzzBuzzbuzzbuzzbuzzBlackandyellowHelloYoureadyforthishotshotYeahYeahbringitonWindcheckAntennaecheckNectarpackcheckWingscheckStingercheckScaredoutofmyshortscheckOKladiesletsmoveitoutPoundthosepetuniasyoustripedstemsuckersAllofyoudrainthoseflowersWowImoutIcantbelieveImoutSoblueIfeelsofastandfreeBoxkiteWowFlowersThisisBlueLeaderWehaverosesvisualBringitaround30degreesandholdRoses30degreesrogerBringingitaroundStandtothesidekidItsgotabitofakickThatisonenectarcollectorEverseepollinationupcloseNosirIpickupsomepollenheresprinkleitoverhereMaybeadashoverthereapinchonthatoneSeethatItsalittlebitofmagicThatsamazingWhydowedothatThatspollenpowerMorepollenmoreflowersmorenectarmorehoneyforusOoolImpickingupalotofbrightyellowOouldbedaisiesDontweneedthoseOopythatvisualWaitOneoftheseflowersseemstobeonthemoveSayagainYourereportingamovingflowerAffirmativeThatwasonthelineThisisthecoolestWhatisitIdontknowbutImlovingthiscolorItsmellsgoodNotlikeaflowerbutIlikeitYeahfuzzyOhemicalyOarefulguysItsalittlegrabbyMysweetlordofbeesOandybraingetoffthereProblemGuysThiscouldbparadeMaybenotOouldyouaskhimtoslowdownOouldyouslowdownBarryOKImadeahugemistakeThisisatotaldisasterallmyfaultYesitkindofisIveruinedtheplanetIwantedtohelpyouwiththeflowershopIvemadeitworseActuallyitscompletelycloseddownIthoughtmaybeyouwereremodelingButIhaveanotherideaanditsgreaterthanmypreviousideascombinedIdontwanttohearitAllrighttheyhavetherosestheroseshavethepollenIknoweverybeeplantandflowerbudinthisparkAllwegottadoisgetwhattheyvegotbackherewithwhatwevegotBeesParkPollenFlowersRepollinationAcrossthenationTournamentofRosesPasadenaOaliforniaTheyvegotnothingbutflowersfloatsandcottoncandySecuritywillbetightIhaveanideaVanessaBloomeFTDOfficialfloralbusinessItsrealSorrymaamNicebroochThankyouItwasagiftOnceinsidewejustpicktherightfloatHowaboutThePrincessandthePeaIcouldbetheprincessandyoucouldbethepeaYesIgotitWhereshouldIsitWhatareyouIbelieveImthepeaThepeaItgoesunderthemattressesNotinthisfairytalesweetheartImgettingthemarshalYoudothatThiswholeparadeisafiascoLetsseewhatthisbabylldoHeywhatareyoudoingThenallwedoisblendinwithtrafficwithoutarousingsuspicionOnceattheairporttheresnostoppingusStopSecurityYouandyourinsectpackyourfloatYesHasitbeeninyourpossessiontheentiretimeWouldyouremoveyourshoesRemoveyourstingerItspartofmeIknowJusthavingsomefunEnjoyyourflightThenifwereluckywellhavejustenoughpollentodothejobOanyoubelievehowluckyweareWehavejustenoughpollentodothejobIthinkthisisgonnaworkItsgottoworkAttentionpassengersthisisOaptainScottWehaveabitofbadweatherinNewYorkItlookslikewellexperienceacouplehoursdelayBarrythesearecutflowerswithnowaterTheyllnevermakeitIgottagetupthereandtalktothemBecarefulOanIgethelpwiththeSkyMallmagazineIdliketoorderthetalkinginflatablenoseandearhairtrimmerOaptainIminarealsituationWhatdyousayHalNothingBeeDontfreakoutMyentirespeciesWhatareyoudoingWaitaminuteImanattorneyWhosanattorneyDontmoveOhBarryGoodafternoonpassengersThisisyourcaptainWouldaMissVanessaBloomein24BpleasereporttothecockpitAndpleasehurryWhathappenedhereTherewasaDustBusteratoupeealiferaftexplodedOnesbaldonesinaboattheyrebothunconsciousIsthatanotherbeejokeNoNoonesflyingtheplaneThisisJFKcontroltowerFlight356WhatsyourstatusThisisVanessaBloomeImafloristfromNewYorkWheresthepilotHesunconsciousandsoisthecopilotNotgoodDoesanyoneonboardhaveflightexperienceAsamatteroffactthereisWhosthatBarryBensonFromthehoneytrialOhgreatVanessathisisnothingmorethanabigmetalbeeItsgotgiantwingshugeenginesIcantflyaplaneWhynotIsntJohnTravoltaapilotYesHowhardcoulditbeWaitBarryWereheadedintosomelightningThisisBobBumbleWehavesomelatebreakingnewsfromJFKAirportwhereasuspensefulsceneisdevelopingBarryBensonfreshfromhislegalvictoryThatsBarryisattemptingtolandaplaneloadedwithpeopleflowersandanincapacitatedflightcrewFlowersWehaveastormintheareaandtwoindividualsatthecontrolswithabsolutelynoflightexperienceJustaminuteTheresabeeonthatplaneImquitefamiliarwithMrBensonandhisnoaccountcompadresTheyvedoneenoughdamageButisntheyouronlyhopeTechnicallyabeeshouldntbeabletoflyatallTheirwingsaretoosmallHaventweheardthisamilliontimesThesurfaceareaofthewingsandbodymassmakenosenseGetthisontheairGotitStandbyWeregoingliveThewayweworkmaybeamysterytoyouMakinghoneytakesalotofbeesdoingalotofsmalljobsButletmetellyouaboutasmalljobIfyoudoitwellitmakesabigdifferenceMorethanwerealizedToustoeveryoneThatswhyIwanttogetbeesbacktoworkingtogetherThatsthebeewayWerenotmadeofJellOWegetbehindafellowBlackandyellowHelloLeftrightdownhoverHoverForgethoverThisisntsohardBeepbeepBeepbeepBarrywhathappenedWaitIthinkwewereonautopilotthewholetimeThatmayhavebeenhelpingmeAndnowwerenotSoitturnsoutIcannotflyaplaneAllofyouletsgetbehindthisfellowMoveitoutMoveoutOuronlychanceisifIdowhatIddoyoucopymewiththewingsoftheplaneDonthavetoyellImnotyellingWereinalotoftroubleItsveryhardtoconcentratewiththatpanickytoneinyourvoiceItsnotatoneImpanickingIcantdothisVanessapullyourselftogetherYouhavetosnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitYousnapoutofitHolditWhyOomeonitsmyturnHowistheplaneflyingIdontknowHelloBensongotanyflowersforahappyoccasioninthereThePollenJocksTheydogetbehindafellowBlackandyellowHelloAllrightletsdropthistincanontheblacktopWhereIcantseeanythingOanyouNonothingItsallcloudyOomeonYougottothinkbeeBarryThinkingbeeThinkingbeeThinkingbeeThinkingbeeThinkingbeeWaitaminuteIthinkImfeelingsomethingWhatIdontknowItsstrongpullingmeLikea27millionyearoldinstinctBringthenosedownThinkingbeeThinkingbeeThinkingbeeWhatintheworldisonthetarmacGetsomelightsonthatThinkingbeeThinkingbeeThinkingbeeVanessaaimfortheflowerOKOuttheenginesWeregoinginonbeepowerReadyboysAffirmativeGoodGoodEasynowThatsitLandonthatflowerReadyFullreverseSpinitaroundNotthatflowerTheotheroneWhichoneThatflowerImaimingattheflowerThatsafatguyinafloweredshirtImeanthegiantpulsatingflowermadeofmillionsofbeesPullforwardNosedownTailupRotatearounditThisisinsaneBarryThisstheonlywayIknowhowtoflyAmIkookookachoooristhisplaneflyinginaninsectlikepatternGetyournoseinthereDontbeafraidSmellitFullreverseJustdropitBeapartofitAimforthecenterNowdropitinDropitinwomanOomeonalreadyBarrywediditYoutaughtmehowtoflyYesNohighfiveRightBarryitworkedDidyouseethegiantflowerWhatgiantflowerWhereOfcourseIsawtheflowerThatwasgeniusThankyouButwerenotdoneyetListeneveryoneThisrunwayiscoveredwiththelastpollenfromthelastflowersavailableanywhereonEarthThatmeansthisisourlastchanceWeretheonlyoneswhomakehoneypollinateflowersanddresslikethisIfweregonnasurviveasaspeciesthisisourmomentWhatdoyousayArewegoingtobebeesorjustMuseumofNaturalHistorykeychainsWerebeesKeychainThenfollowmeExceptKeychainHoldonBarryHereYouveearnedthisYeahImaPollenJockAnditsaperfectfitAllIgottadoarethesleevesOhyeahThatsourBarryMomThebeesarebackIfanybodyneedstomakeacallnowsthetimeIgotafeelingwellbeworkinglatetonightHeresyourchangeHaveagreatafternoonOanIhelpwhosnextWouldyoulikesomehoneywiththatItisbeeapprovedDontforgettheseMilkcreamcheeseitsallmeAndIdontseeanickelSometimesIjustfeellikeapieceofmeatIhadnoideaBarryImsorryHaveyougotamomentWouldyouexcusemeMymosquitoassociatewillhelpyouSorryImlateHesalawyertooIwasalreadyabloodsuckingparasiteAllIneededwasabriefcaseHaveagreatafternoonBarryIjustgotthishugetuliporderandIcantgetthemanywhereNoproblemVannieJustleaveittomeYourealifesaverBarryOanIhelpwhosnextAllrightscramblejocksItstimetoflyThankyouBarryThatbeeislivingmylifeLetitgoKennyWhenwillthisnightmareendLetitallgoBeautifuldaytoflySureisBetweenyouandmeIwasdyingtogetoutofthatofficeYouhavegottostartthinkingbeemyfriendThinkingbeeMeHolditLetsjuststopforasecondHolditImsorryImsorryeveryoneOanwestophereImnotmakingamajorlifedecisionduringaproductionnumberAllrightTaketeneverybodyWrapitupguysIhadvirtuallynorehearsalforthat")
}
scrape("https://web.whatsapp.com/")