Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,402 members, 7,954,596 topics. Date: Saturday, 21 September 2024 at 12:10 AM |
Nairaland Forum / Science/Technology / Programming / Meet Nairachat - Nigeria's New Phenomenon (3958 Views)
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 9:17pm On Jun 24, 2016 |
teampregar:What you dont understand is that threads (even very good threads on this board hardly makes FP). This type of thread will NEVER hit FP (for some certain reasons i cant share on this thread) - but one of the reasons is that the admin will expect the OP to do a paid advert. jidez007:hehehehe, well, i did not write the API, but search google for - elvis - the first result should be it. |
Re: Meet Nairachat - Nigeria's New Phenomenon by sleepingdemon: 9:20pm On Jun 24, 2016 |
dhtml18: something like thos, although im yet to test it <?php $username="nairaland"; $password="mypassword"; $url="https://www.nairaland.com/do_login"; $cookie="cookie.txt"; $postdata = "name=".$username."&password=".$password; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0" curl_setopt ($ch, CURLOPT_TIMEOUT, 60); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt ($ch, CURLOPT_REFERER, $url); curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt ($ch, CURLOPT_POST, 1); curl_exec ($ch); $http_status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if($http_status_code == 200){ echo "login succesfull"; }else{ echo "login failed"; } curl_close($ch); |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 9:41pm On Jun 24, 2016 |
^^^that will work, i have executed it with my eyes. But that API i specified is easier and has lots of functions. But i am not sure the code is being maintained, but it had many features back then sha. |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nmeri17: 9:44pm On Jun 24, 2016 |
dhtml18: 1 Like |
Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 10:04pm On Jun 24, 2016 |
@sleepingdemon your code is not complete. it's not as if nairaland will return a different status code when you enter an incorrect password. |
Re: Meet Nairachat - Nigeria's New Phenomenon by FincoApps(m): 10:37pm On Jun 24, 2016 |
Re: Meet Nairachat - Nigeria's New Phenomenon by FincoApps(m): 10:42pm On Jun 24, 2016 |
sleepingdemon: I even used something similar but I think the status code would still be 200 even if the login failed. Thus with your code, the login will always be successful. I didn't try it though |
Re: Meet Nairachat - Nigeria's New Phenomenon by sleepingdemon: 11:22pm On Jun 24, 2016 |
jidez007:true. just tried it and the status codr is always 302. so i guess at this point. instead of checking status code, ill just check for incorrect username or pass string in the result like jidez did |
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 3:25pm On Jun 25, 2016 |
jidez007: ...lolZzz....I like the way you defended yourself |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 3:44pm On Jun 25, 2016 |
Nmeri17:I click am, the thing no work o. israelboy1:That is what we call a programmer - not those that use their mouth to talk and pound their chest to emphasize. FincoApps:Works fine 1 Like |
Re: Meet Nairachat - Nigeria's New Phenomenon by maekhel(m): 4:05pm On Jun 25, 2016 |
Una don finally finished Nairaland. |
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 4:15pm On Jun 25, 2016 |
dhtml18: exactly lolzzzzzz... felt intimidated dou ....guess I need to pick up my book again |
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 4:18pm On Jun 25, 2016 |
I tried http://service.fincoapps.com/daddy/daddy.php hope my account won't be hacked....lolzzzzz. I see this thread getting closed...deleted....or...every commenters BANNED |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 5:01pm On Jun 25, 2016 |
maekhel:For what now? israelboy1:Of course you should, so much going on out there israelboy1:I have like 50 handles I registered for a rainy day, used to be more but seun deleted most of them. But he cannot BAN or DELETE this my handle (for some certain reasons we both know). |
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 9:42pm On Jun 25, 2016 |
dhtml18: let me too know na....so as never to be banned |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 10:26pm On Jun 25, 2016 |
israelboy1:Hahahaha, trade secret |
Re: Meet Nairachat - Nigeria's New Phenomenon by KazukiIto(m): 7:29am On Jun 26, 2016 |
Interesting thread. For once NL programmer wrote code |
Re: Meet Nairachat - Nigeria's New Phenomenon by treex11: 11:08am On Jun 26, 2016 |
Wen cn we test d beta n if u wnt funding I cn donate I love naija product |
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 3:40pm On Jun 26, 2016 |
KazukiIto:Yeah, instead of running mouth recursively |
Re: Meet Nairachat - Nigeria's New Phenomenon by Kodejuice: 10:46pm On Jun 26, 2016 |
jidez007: LoL, you have to be very specific if you're doing such. Because even if the login was successful, the page returned may contain the string 'Wrong username Or passwaord', may be in a particular threads name, the best way is to check if the element holding that error message exists and contains the error message. 1 Like |
Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 5:19am On Jun 28, 2016 |
Kodejuice:There's nothing stopping you from modifying it or writing your own. |
Re: Meet Nairachat - Nigeria's New Phenomenon by Kodejuice: 5:50am On Jun 28, 2016 |
jidez007:just saying. |
Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 7:56am On Jun 28, 2016 |
Kodejuice:I get. It was just a quick example |
Re: Meet Nairachat - Nigeria's New Phenomenon by sixcobillz(m): 8:09pm On Jul 05, 2016 |
nejifresh:op if you can manage this app till 2019 I'll buy it from you |
Is 60k Good Enough For A UI Designer / Chemistry! Help A Brother To Solve These Questions / How Much Does It Cost To Make A Website From Scratch
(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. 34 |