Skip to content

Instantly share code, notes, and snippets.


Ashwin Kain Ashwin-Kapes

View GitHub Profile
Ashwin-Kapes / Index.php
Created Feb 28, 2016 — forked from SendOTP/Index.php
SendOTP Client Side sample code JavaScript
View Index.php
<script type="text/javascript" src="jquery-2.1.4.min.js"></script>
<script type="text/javascript">
function sendOTP() {
var data = {"countryCode": "country code", "mobileNumber": "Mobile number to be verified"};
url: 'http://Your-domain-name/path/sendotp.php?action=generateOTP',
type: 'POST',
dataType: 'json',
data: data,

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}