- Python 3
- Pip 3
$ brew install python3| from flask import Flask, request, jsonify | |
| import json | |
| import sqlite3 | |
| app = Flask(__name__) | |
| def db_connection(): | |
| conn = None | |
| try: |
| #!/usr/bin/env python3 | |
| # Use: ./subnet.py <ip/cidr> | |
| # Alt: ./subnet.py <ip> <mask> | |
| import sys | |
| if __name__=="__main__": | |
| addr = [0, 0, 0, 0] | |
| mask = [0, 0, 0, 0] | |
| cidr = 0 |
| <?php | |
| /** | |
| * @param string $url - the url you wish to fetch. | |
| * @return string - the raw html respose. | |
| */ | |
| function web_scrape($url) { | |
| $ch = curl_init($url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
| $response = curl_exec($ch); |