Page 1 of 1

How To Code In Php 7 To NAVIGATE, WAIT FOR ITEM ELEMENTS, TY

Posted: Thu Jan 19, 2017 4:40 pm
by UniqueIdeaMan
Fellow Php Developers,

Googled but no luck to get Php 7 sample snippets for my learning purpose.
Can you be kind enough to give me code snippets in Php 7 so I can learn Php 7 faster while gaining work experience building scripts ?
I have tailored (but not built) a script with a variety of functions. If I can get the source code of the script (build it or get it built) then I can learn many functions from it. Good work experience! The task of the script is to auto search keywords on google. Here are the steps the script must undergo:

PSEUDOCODE START

* -> NAVIGATE TO (CONSTANT): google.com
* -> WAIT FOR SEARCH BOX HTML ATTRIBUTE TO LOAD ON PAGE
* -> WAIT FOR SEARCH BUTTON HTML ATTRIBUTE TO LOAD ON PAGE

* -> TYPE KEYWORDS (CONSTANT): "php 7 programming forums" ON SEARCH BOX
* -> CLICK SEARCH BUTTON


(LOOP WHILE NOT LIST ITEMS IN LIST "SEARCH RESULT" = 100
START LOOP
* -> WAIT FOR SERP LINKS TO LOAD ON PAGE
* -> SCRAPE ALL SERP LINKS (fullhrefs) TO LIST: SEARCH RESULT
* -> CLICK NEXT BUTTON
END LOOP
)

END OF PSEUDOCODE


As you can see, The PSEUDOCODE has about 10 functions and so just glancing over the script should give me work experience in 10 things (teach me 10 different codes).

So basically, hen you load the auto-search.php, it should redirect you to google.com, keyword search for "php 7 programming forums" and scrape all links presented by the search (page after page until 100 links have been scraped).
Show me different code samples so I can learn a variety of ways to achieve the same goal.


Anyway, using that PSEUDOCODE I built a .exe tool (Ubot Studio). Now, I want to learn how to build a web version. The first 10 people who provide codes here where their codes do all the steps mentioned in the PSEUDOCODE will get a free copy of the .exe version as a thank you and so NO you won't be wasting your time helping me learn Php 7 through practical work experience as you'll get something in return! And don't forget other newbies would benefit from your code contributions too and LIKE your posts!


Thank You!

Re: How To Code In Php 7 To NAVIGATE, WAIT FOR ITEM ELEMENTS

Posted: Thu Jan 19, 2017 6:11 pm
by Celauran
What have you tried so far? Where are you getting stuck? I think you'll find people are more receptive to helping you fix code than they are to simply being asked to write it for you.

Re: How To Code In Php 7 To NAVIGATE, WAIT FOR ITEM ELEMENTS

Posted: Thu Jan 26, 2017 6:14 pm
by thinsoldier
Google probably has some kind of search api for doing this easily. Otherwise you need to look into an http library like curl. Offering a compiled exe in exchange for source code is kind of offensive.

Re: How To Code In Php 7 To NAVIGATE, WAIT FOR ITEM ELEMENTS

Posted: Fri Jan 27, 2017 12:04 am
by requinix
No. Still not going to help you build a bot for Google data when they give you an actual API for the results. I don't care which sites you ask on or whether you offer your program as a reward or not.

Multiple people have told you about CSE now. Stop asking this question.