Skip to content

Instantly share code, notes, and snippets.

View Ashwin-Kapes's full-sized avatar
🎯
Focusing

Ashwin Kain Ashwin-Kapes

🎯
Focusing
View GitHub Profile
@Ashwin-Kapes
Ashwin-Kapes / Index.php
Created February 28, 2016 18:52 — forked from SendOTP/Index.php
SendOTP Client Side sample code JavaScript
<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"};
$.ajax({
url: 'http://Your-domain-name/path/sendotp.php?action=generateOTP',
type: 'POST',
dataType: 'json',
data: data,
@Ashwin-Kapes
Ashwin-Kapes / php-webscraping.md
Created January 31, 2016 02:18 — forked from anchetaWern/php-webscraping.md
web scraping in php

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 %}