Posts

Scraping/Crawling/Parsing HTML in ReactNative

Image
Recently while building an app in ReactNative I encountered a scenario/feature where I needed to parse a whole website to feed data to my app . When this requirement came to me , the first thing which came to my mind was to use X-Path   because I had used this in my college days , but soon realised that it it tedious for my task . Soon I started searching on internet for a easy, reliable and efficient way to implement this , but to my surprise there were very few to no comprehensive solution around there , specially for the kind of level of complexity of parsing/scraping I was looking at . I tried and tested several packages and many ways to do it , but the one I finally found working efficiently for me is Cheerio    . This react package is a reimplementation  of j-Query's core features . Now that I found the library , I thought few more minutes I will have my work done .. But , wait it wasn't so easy at least for me with the kind of limited documentation and ex