Skip to content

Instantly share code, notes, and snippets.

View ksn-developer's full-sized avatar

Kiran ksn-developer

View GitHub Profile
@ksn-developer
ksn-developer / index.html
Created October 5, 2023 04:52
Responsive Chat Box Bootstrap 5
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- char-area -->
@ksn-developer
ksn-developer / pandas_webscraper.py
Created March 1, 2023 18:42
Webscraping using pandas
import pandas as pd
import matplotlib.pyplot as plt
# Wikipedia page for total wealth data
url = 'https://en.wikipedia.org/wiki/List_of_countries_by_total_wealth'
# read HTML tables from URL
tables = pd.read_html(url)
# extract the first table (which contains the wealth data)
import re
import shlex
import pandas as pd
class Parser:
IP = 0
TIME = 3
TIME_ZONE = 4
REQUESTED_URL = 5