- GET Requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example encoding of an email message in JSON | |
{ | |
headers: [ # in an array since order matters | |
{ name: 'Subject', value: 'An email' }, | |
{ name: 'Date', value: 'Thu, 4 Mar 2010 15:35:32 -0800' }, | |
{ name: 'From', value: '[email protected]' }, | |
{ name: 'To', value: '[email protected]' } | |
{ name: 'Sender', value: '[email protected]' } | |
{ name: 'Reply-to', value: '[email protected]' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
db: | |
container_name: database | |
image: mariadb # Pull mysql image from Docker Hub | |
ports: # Set up ports exposed for other containers to connect to | |
- "3306:3306" | |
volumes: | |
- ./dep/mysql:/docker-entrypoint-initdb.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>TCD Tile Comparison</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<!-- Load Leaflet from CDN--> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/leaflet/0.7.7/leaflet.css" /> |
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 %}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1. buka terminal, dan taip arahan di bawah | |
which php | |
#2. secara default, lokasi php adalah seperti berikut | |
/usr/bin/php | |
#3. edit bash_profile | |
sudo vim ~/.bash_profile | |
#4. masukkan line dibawah |
NewerOlder