Skip to content

Instantly share code, notes, and snippets.

View Jasiri-w's full-sized avatar
😄
Learning a new tech stack

Jasiri M. Wa-Kyendo Jasiri-w

😄
Learning a new tech stack
View GitHub Profile
import pandas as pd
from tqdm import tqdm
from trafilatura.sitemaps import sitemap_search
from trafilatura import fetch_url, extract
def get_urls_from_sitemap(resource_url: str) -> list:
"""
Get a list of urls from a sitemap with trafilatura
"""
@beaucarnes
beaucarnes / keep_alive.py
Created December 10, 2020 15:42
Python Server for Discord Bot
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
return "Hello. I am alive!"
def run():
from pytube import YouTube
#ask for the link from user
link = input("Enter the link of YouTube video you want to download: ")
yt = YouTube(link)
#Showing details
print("Title: ",yt.title)
print("Number of views: ",yt.views)
print("Length of video: ",yt.length)
@santisbon
santisbon / Search my gists.md
Last active May 5, 2025 21:07
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@Jasiri-w
Jasiri-w / Meow.
Last active December 29, 2015 17:19
Hello!
Hello there
How's the going
Okay
Never
@Jasiri-w
Jasiri-w / Awesomeness, for baby gaots.
Last active December 29, 2015 15:59
Cry me rivers; Shut up.
Hi- Mee
Bye-mee
Cat!-meeeeee!
(s)-e
Never-mee [and run away]
Food-b
Food!!!!-Beeeeeeeeēeeeee!!!!