Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,819 members, 7,956,086 topics. Date: Monday, 23 September 2024 at 01:21 AM |
Nairaland Forum / Science/Technology / Programming / I Need A Smart Programmer To Solve This Logic? (5292 Views)
Programming Logic Challenge / How To Code This Logic With Php... / Chemistry! Help A Brother To Solve These Questions (2) (3) (4)
I Need A Smart Programmer To Solve This Logic? by peter087: 8:05pm On Jul 11, 2017 |
What is the best method to solve this; Say i have a link and i want to give that link to 5 websites owners to post on their website, how can i check if they actually posted the link without manually going through their sites. Please who can help me with an idea using either PHP or JavaScript. Thanks |
Re: I Need A Smart Programmer To Solve This Logic? by rayyspark(m): 8:56pm On Jul 11, 2017 |
na dull programmers dey around now...dont worry wen d smart ones arrive I wil info u 1 Like |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 9:16pm On Jul 11, 2017 |
rayyspark:Speak for yourself alone. @OP, i believe the key to solving it is to locate a web service that can search out the url with good precision and compare their location to the site of the people you gave the link to. 1 Like |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 9:50pm On Jul 11, 2017 |
You can crawl the websites. If it's supposed to be in their homepage, write a code to crawl the home page periodically and check if the link is in the page. |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 9:52pm On Jul 11, 2017 |
Desyner:What kind of web service? |
Re: I Need A Smart Programmer To Solve This Logic? by peter087: 10:04pm On Jul 11, 2017 |
Desyner: Thanks for the tip bro. i appreciate |
Re: I Need A Smart Programmer To Solve This Logic? by peter087: 10:07pm On Jul 11, 2017 |
4kings: Thanks alot, this sounds very promising, i will look into it. again thanks i appreciates |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 10:16pm On Jul 11, 2017 |
peter087:You're welcome. |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 10:28pm On Jul 11, 2017 |
4kings:goole for example can return a particular link if you dump it in ur search bar. |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 10:34pm On Jul 11, 2017 |
Desyner:Thanks, but what's the difference between that and dumping it in Google search bar. |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 10:56pm On Jul 11, 2017 |
4kings:A web service can be programatically manipulated thereby saving u the stress of entering you links into the search bar and comparing results manually. It is harder to implement but less stressful once implemented |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 11:57pm On Jul 11, 2017 |
Desyner:Probably i dont understand what you mean by ''web service'' and the means of manipulating it, but what's the difference between that and using google api to programmatically enter the url links? |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 11:59pm On Jul 11, 2017 |
4kings:Web service is service provided by another web that u can use. |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 12:07am On Jul 12, 2017 |
Desyner:OK, thanks for the definition. How then does one go about ''manipulating'' the web service for the task peter087 wants, is there a provision for that or one still needs to crawl the web service? |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 12:21am On Jul 12, 2017 |
4kings:When you identify a particular web service for your need, go ahead and find out how it is consumed. For instance you could go to youtube or stackoverflow to learn how to manipulate a particular web service or even ask on stackoverflow in order discover one that fits your need. I am a Java person. Sounds like you need a PHP solution. Another key thing is using the right term to describe your need when searching or asking. People who deal in stuff like these are often very accurate with jargons. |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 12:30am On Jul 12, 2017 |
Desyner:I'm actually a python programmer, don't know php. Thanks a lot, i'll look into this "web service" later starting with goole. |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 12:32am On Jul 12, 2017 |
4kings:Please do. |
Re: I Need A Smart Programmer To Solve This Logic? by peter087: 10:15am On Jul 12, 2017 |
4kings: Firstly i like the mature way you guys are handling this argument i really appreciate. But a web service is just like building an api either in the form of SOAP, REST or JSON but how do i write the logic, that is my problem. Personally i think a crawler will do better. But then again, it will consume so much resources if i need to crawler a huge number of sites and another think, what if at the time of crawling the post is no longer at the homepage, like it has gone down to say page 2, will it still be crawl? |
Re: I Need A Smart Programmer To Solve This Logic? by adejumoadeoluwa(m): 10:38am On Jul 12, 2017 |
if that link is supposed to generate traffic just use an url tracker every url shortener has one http:// |
Re: I Need A Smart Programmer To Solve This Logic? by 4kings: 11:35am On Jul 12, 2017 |
peter087:jesus!!! Is that really what a web service is? If that's the case then what would make me use goole over standard google api. @ DESYNER This was why i was confused cos i thought there's more to this 'web service', i didn't know it was just an api.[if i'm wrong please correct me] if you get to crawl the site, whether using your own crawler or their api if they have one, you can always easily crawl through the pages too. If you are to crawl nairaland for example you can use this link https://www.nairaland.com/links/var where var is a variable in a loop from range 0 to 100 to keep crawling from page 0 to 100. |
Re: I Need A Smart Programmer To Solve This Logic? by Olyboy16(m): 3:23pm On Jul 12, 2017 |
peter087: crawl? you gotta be kidding me! hey Op, let the webmaster write script tags that points to a script on your own server. that way, you have complete access to do anything you want. |
Re: I Need A Smart Programmer To Solve This Logic? by peter087: 5:59pm On Jul 12, 2017 |
4kings: Oh, ok i get thanks |
Re: I Need A Smart Programmer To Solve This Logic? by peter087: 6:01pm On Jul 12, 2017 |
Olyboy16: Please can you elaborate more |
Re: I Need A Smart Programmer To Solve This Logic? by cbrass(m): 7:30pm On Jul 12, 2017 |
rayyspark: |
Re: I Need A Smart Programmer To Solve This Logic? by cbrass(m): 7:32pm On Jul 12, 2017 |
peter087: So its this nursery school question you need a smart programmer for |
Re: I Need A Smart Programmer To Solve This Logic? by Olyboy16(m): 10:57pm On Jul 12, 2017 |
peter087: create a js script on your server (say monitor.js), make sure its accessible. then just like including jquery from cdn, the webmaster writes script tags that points to your script. . <script src='http://yoursite.com/service/monitor.js'></script> . when the webmaster load the page containing this snippet, your js script gets loaded in the webpage automatically. so you have access to the document and window object. in your case since you wish to check the presence of your link. simply write js code that updates your database with ajax ever time d script gets executed. to recognize the webmaster, check the window.location string to confirm the domain that is calling your script. . incase you need to write something on the webmaster's webpage; maybe a link or pic. just encourage the webmaster to create an element with a unique id like facebook's 'fb-root' on his page, then you can access that id from your script! c'est fini! 3 Likes |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 12:52am On Jul 13, 2017 |
4kings:So according to you what is a web service? We are not here to brag & lambaste but to brainstorm & learn. Please educate us. |
Re: I Need A Smart Programmer To Solve This Logic? by DharkPoet(m): 2:09am On Jul 13, 2017 |
Just use utm codes. |
Re: I Need A Smart Programmer To Solve This Logic? by greatface(m): 10:11am On Jul 13, 2017 |
SERIOUSLY, I DON'T SEE ANY NEED TO KEEP FINDING OTHER SOLUTIONS WHEN API IS THERE. THE ARGUEMENT BETWEEN DESYNER AND 4KINGS IS INTERESTING BUT I STAND WITH 4KINGS'S LOGIC |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 12:19pm On Jul 13, 2017 |
greatface:I never argued with anyone. And what happens when the other site doesn't have a robust api to handle what OP wants. A suitable web service to me looks more appealing here. I would appreciate if you could point out the meaning or definition of a web service you agree with. |
Re: I Need A Smart Programmer To Solve This Logic? by greatface(m): 12:35pm On Jul 13, 2017 |
Desyner:I NOTED IN MY COMMENT THAT I DON'T SEE THE NEED FOR OTHER OPTIONS IF THERE EXISTS API FOR THE JOB. OFFICIALLY, AM NUETRAL ON THAT GROUND BUT ONLY MADE MY PERSONAL OPINION KNOWN. THERE EXISTS NO BEST WAY OF DOING A PARTICULAR THING IN PROGRAMMING EVEN THOUGH THERE EXISTS GENERALLY ACCEPTED BETTER WAY(S). I DO IMPLEMENT SOME STUFFS MYSELF EVEN WHEN SOME SOLUTIONS ALREADY EXISTS BUT THAT MAINLY ARE FOR LEARNING PURPOSES. NO INTENTION OF INVOKING YOUR TEMPER PLEASE. |
Re: I Need A Smart Programmer To Solve This Logic? by Desyner: 12:56pm On Jul 13, 2017 |
greatface:Please point out where I implied either implicitly or otherwise that one approach is best. Stop bragging on what's largely an idea. It may never work when finally implemented and therefore I see no reason for the blind and unnecessary boasting. |
Message To Nairaland Programmers On Programming and Success / Kogi Chief Of Staff, Pharm. Asuku To Train 200 Youths On Web Programming, ICT / Tools You Must Have To Start Programming In Nigeria
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 48 |