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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
UniqueIdeaMan
Forum Contributor
Posts: 197
Joined: Wed Jan 18, 2017 3:43 pm

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

Post 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!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post 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.
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

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

Post 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.
Warning: I have no idea what I'm talking about.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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.
Locked