phpallwinner Posted May 10, 2014 Share Posted May 10, 2014 (edited) Hi everybody, this is NOT me in the picture. I would like to tell you that I am so pleased that I can be a registered member of this site. But all I registered for is to get help. As you could have found out from the title. For what I do need your help? Yes, I'm not kidding, I really need a good brain, but I do not want to take your brain literally. No, I just need you to tell me how to create the following easy php script. What should it do? The php script should be able to find things I'm searching for. For example: - I type in: used apple iphone pink with hello kitty scrandguru (I don't know what does scrandguru mean, don't ask me) and it searches immediately on ebay, amazon.com, google etcetera, all the sites I just want it to search on. The Structure: A simple html and css made page, with the script. I type in "something", hit enter, it submits the data and sends it to the php script, the php script connects to internet, no database used for this so far, it searches on ebay, amazon etc etc.. The Dilemma: How..can.. I.. make.. THIS?! Thanks for good and smart replies in advance, I hope you can help me out. Best wishes, Micky Edited May 10, 2014 by phpallwinner Quote Link to comment https://forums.phpfreaks.com/topic/288387--/ Share on other sites More sharing options...
ignace Posted May 10, 2014 Share Posted May 10, 2014 (edited) Obviously the introductions forum should not be used to ask for help. To answer your question. How..can.. I.. make.. THIS?! Learn HTML, PHP and XPath (or Regex) to query the DOM of the returned HTML from Google, Amazon, and e-bay. Learn CSS optionally to make your website and the search results look nice. Edited May 10, 2014 by ignace Quote Link to comment https://forums.phpfreaks.com/topic/288387--/#findComment-1479006 Share on other sites More sharing options...
phpallwinner Posted May 11, 2014 Author Share Posted May 11, 2014 (edited) Obviously the introductions forum should not be used to ask for help. To answer your question. Learn HTML, PHP and XPath (or Regex) to query the DOM of the returned HTML from Google, Amazon, and e-bay. Learn CSS optionally to make your website and the search results look nice. Thanks for quick reply! I already know by heart HTML, CSS3 and some PHP (only basic tags, but I can make out of them a working website, for example for a small company), but I don't know how to build the idea's structure I mentioned above. Guess what I mean? Edited May 11, 2014 by phpallwinner Quote Link to comment https://forums.phpfreaks.com/topic/288387--/#findComment-1479115 Share on other sites More sharing options...
Maq Posted May 12, 2014 Share Posted May 12, 2014 (edited) Instead of scraping, search to see if each of these sites have an API you can use, it's far more reliable. Also, I would attempt to do this yourself then if you have specific questions post them in the appropriate forum section for more helpful replies. Edited May 12, 2014 by Maq Quote Link to comment https://forums.phpfreaks.com/topic/288387--/#findComment-1479282 Share on other sites More sharing options...
Psycho Posted May 12, 2014 Share Posted May 12, 2014 Instead of scraping, search to see if each of these sites have an API you can use, it's far more reliable. If these sites don't have an API to allow you to perform a search such as you need, then it's a pretty good chance that trying to scrape their sites is against the TOS for those sites. Quote Link to comment https://forums.phpfreaks.com/topic/288387--/#findComment-1479283 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.