@@hanesmitter1469 you can use mine here it is working fine (Note: changing the page number does not do anything so you need to change the start parameter's value when you wanna goto next page)
@ItsAlkhanza4 жыл бұрын
@@8ack2Lobby Thanks for the code
@مخمخشو3 жыл бұрын
@@8ack2Lobby can u but in GitHub
@ShawnRitch Жыл бұрын
@@8ack2Lobby Thank you sir ! ! ! Still works after all these years. Gotta love PHP :)
@tanjimrahat96743 жыл бұрын
I feel this channel should have more subscriber than it has. Thumbs up!
@anthonymcevans81916 жыл бұрын
The most useful content I’ve ever ever seen. I definitely will subscribe.
@groovykeyz92627 жыл бұрын
When I view page source I get a blank page. I don't know why that happens. I have a blank page when I run parse_imdb.php then whenever I call the function scrape_imdb(2000,2000,76,76); and it is loading endlessly
@chesterleespencer58082 жыл бұрын
It's Enlightening, thank you so much...
@terminatortutorials7 жыл бұрын
I've never seen an attempt to parse XML using a regex that won't break on some content.The real trouble is nested tags.Nested tags are very difficult to handle with regular expressions.If you want to find a very specific pattern in a (ht|x)ml file, go on, regex is perfect for that.But if you are searching for something in in every Foo tag, that could have attributes in different orders, that can be nested, that can be malformed (and still valid), then use a parser, because thats not pattern matching anymore.
@zsoltoroszlany71726 жыл бұрын
Arslan Hajdarevic C# XPath nightmare, it is even worse. Basically everything would be fine if (x)html would be valid.
@mehranehsandoost27997 жыл бұрын
i have problem with some pages when i use : $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,True); $res = curl_exec($ch); echo $res; it shows a page like �w�Z�Ѹt���� d what should I do to solve this problem?
@johnowen-jones67025 жыл бұрын
Found a couple of issues first is the url needs to be https instead of http, the pagination has changed it now gives 50 results and a second page starts at 51 I made a variable pageblock and then incremented it in the for loop by 50 so 1, 51, 101 not quite perfect but the strange thing is the array is reversed. page 3 is 0-49 page2 50-100 and page 1 is 100 to 150; kind of expected it to fill page1, 2,3, but this is reversed.
@foxtechsb60483 жыл бұрын
Nice tutorial, Thanks, how to inset scarp data into database table?
@nguyenduyquang35333 жыл бұрын
Can't scan data when the system requires login, what should I do? , look forward to your help
@BorislavJordanov5 жыл бұрын
You just earned a sub! Love the clarity of your voice. Thanks for all your explanations!
@kizitopedro88085 жыл бұрын
Hi I like your previous video though I didnt quite understand how you get the movies from IMDb. But am working on a website for movies and also TV series, so is their any way you can show me how to also add TV series files from IMDb and how it works,like am I to register in IMDb or what please
@FaceBook-bd3xo5 жыл бұрын
hi man/how to parse data from different pages? example.i want to parse content from the main page(date of concert,heading and image) and inner page(when we clicked on the heading we are step up in the inner page) with preambule.
@amadeuszdobies93997 жыл бұрын
Regular expressions are always pain in the ass haha :D
@adityarajsingh76174 жыл бұрын
how to get the regular expressions
@westjr50857 жыл бұрын
great vid...what about websites with user authentication and load the data from react js?? I have the log in portion but I can load the element data because it is delivered from react
@yusufmzn45416 жыл бұрын
i need an answer for my Question Question : who is better for making movies website HTML or Wordpress?? and i'm learned HTML and CSS and JavaScript
@mohammedissam36514 жыл бұрын
How did you know that they uses php ? IMDb.com they could use c# cus when you load HTML file it doesn’t load backend script with it . Do you find it out with try and error, Or they said that they use php in their website?
@darylzhang31246 жыл бұрын
Could you explain what is the difference between starting with ! and starting with / when I use the regular expression functions of PHP? Because I used preg_match_all('/regular expression/',$result,$matcg) and it worked except the regular expression, '/Directors?: (.*?) /s',used for obtaining the names of directors. Thank you.
@zsoltoroszlany71726 жыл бұрын
Daryl Zhang Think of the ! like quote in between you have your regex, and since you used ! as a barrier you have to escape exclamation mark in your regexp, without this the regexp parser will think your regex ends there. Example you cant do this somethink like this !.+?(.+?)!! you have to escape the \! before
@redblue77335 жыл бұрын
Thanks for video and time. Finaly one good yt author.
@sudhagars6413 жыл бұрын
Nice tutorial, Thanks sir
@8ack2Lobby4 жыл бұрын
That code is not working anymore. So, if you need a working one, here it is (NOTE: credit always goes to my Teacher Clever Techie for teaching me all these things). So, enjoy!
@mahmoudsamyessawy6 жыл бұрын
Thank you very much , but I am afraid you did it the wrong way , I think we have to us a HTML parsing library instead of regex , because regex cann't parse element by element , for example if a movie have no Gross nor Votes and this movie happened to be the last one of the current page (i .e : their is no next ) , how could we get this using the regex , if we us an Html parsing library we could walk movie by movie and parse all its info , any way I enjoyed the video thank you again :)
@GauravSharma-cw1hf2 жыл бұрын
The link you provide download source code is not work.
@andrewlong30737 жыл бұрын
Hi Clever Techie, thanks for a great video. Just one thing : where does the $match variable come from?
@StoreRunDotCom7 жыл бұрын
so .*? is a wildcard and in parenthesis is the wildcard you want to capture?
@senghortkheang98317 жыл бұрын
Dear Sir, Do you ever scrape data from block JavaScript? Do you have a solution & simple code? Can you help me? I will wait for help from you.
@nazartjara93977 жыл бұрын
Why do not you use xpath?
@primepryme7 жыл бұрын
i do love your way of explaining thing
@naveshkintali12194 жыл бұрын
Brother can you please make a resume parser in Php? There is no resume parser in php....not available on internet and KZbin. I tried getting on github but nothing is working.. If u make then your video will be unique and most of them needs it. Please make it in php
@vashantir5 жыл бұрын
In case a newbie pops in...there's actually 50 elements. Don't forget arrays start at 0.
@nxson87272 жыл бұрын
so i this like a imdb website made with php and html?
@jcltradingcompany35587 жыл бұрын
Hey Clever Techie - From where did you get the regular expression to match with regex101? How could I get that information from any website. ?
@jcltradingcompany35587 жыл бұрын
Hey Clever Techie, I went through your Regual Expression Tutorial and understood. Thanks a ton. I was confused before thinking where did you get those regular expression you created.. Your tutorials are simply great.
@johnjohnson75387 жыл бұрын
Great tutorial, In the regular expression used to collect the titles, at 2:37, you have " '!(.*?)!' " what is the reason for the first '?' That is, why do you start with '!
@clevertechie7 жыл бұрын
.*? is non-greedy meaning it will stop when it will encounter the first character which is placed right after it, in this case a double quote. .* is greedy and will go on matching absolutely ANYTHING (spaces, line breaks, ALL the content....) you unleash the cracken with it.
@rahulsharma-wy3sy5 жыл бұрын
I tried this but some content is not parsing. Can you please help
@shivam21536 жыл бұрын
I am not getting the required output. Can you tell me what all is required to run this php file for the desired output
@dondada15076 жыл бұрын
Read about xamp, then install it
@alexlopusy37446 жыл бұрын
thank so much for your tutorial sir , helps alots
@sergeyz45914 жыл бұрын
Keep on doing stuff like this because it teaches newbies to write really stupid scrapers.
@andrewmusholt93275 жыл бұрын
Fun and useful skill!!! Thank you
@kakatoji4 жыл бұрын
how to scraping and bypassing the recapctha
@NandamuriManikanta7 жыл бұрын
Hey @Clever Tehie how are you making GET calls to imbd webiste and how are you dealing with CORS problem.Please revert TIA
@PeterParker-sy9bp7 жыл бұрын
he is not performing a get request. he is performing a curl request and storing what has returned.And it is returning the source code of the given url. you can watch his video on curl.
@soraya75766 жыл бұрын
i need to know how scheduler crawler parser and indexierer will work... help
@clevertechie6 жыл бұрын
I already have videos on all those things you metioned
@munauwarm74497 жыл бұрын
how can I insert it into database ?
@shivam21536 жыл бұрын
what all is needed to run this code
@VivekKumar-br9ie6 жыл бұрын
Useful Video
@TechieUpgrader2 жыл бұрын
How to scrape amazon prime video website
@chanlito48967 жыл бұрын
No offense but do yourself a favor and use node for web scraping.
@amguruprasath80376 жыл бұрын
"Moved Permanently The document has moved here." I get this error.
@thisisnotok21005 жыл бұрын
it matters where you curl to, make sure there are no redirects
@mehranehsandoost27997 жыл бұрын
thank you for tutorial
@frosty14337 жыл бұрын
You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML..........
@zsoltoroszlany71726 жыл бұрын
Shea Sollars Tried XPath? I am thinking going with regex too, since XPth is a nightmare in C# believe me, of course maybe there are better tools other tan HtmlAgilityPack, but lets say "hap" follows a strict path to an element and usually results the wrong elemnt altough the XPath is correct.
@aristonia19913 жыл бұрын
This is such overkill IMDB has an api that's all you need...