Skip to content

Instantly share code, notes, and snippets.

require 'active_support/time'
require 'active_support/core_ext'
output_txt = ""
start_of_month = Time.now.beginning_of_month.to_date.strftime("%Y-%m-%d")
end_of_month = Time.now.end_of_month.to_date.strftime("%Y-%m-%d")
date_range = (start_of_month..end_of_month)
date_range.each do |d|
javascript: (function () {
const title = document.title;
const textArea = document.createElement("textarea");
textArea.setAttribute("id", "copyTarget");
textArea.value = title;
document.body.appendChild(textArea);
const copyText = document.querySelector("#copyTarget");
copyText.select();
document.execCommand("copy");
import requests
from bs4 import BeautifulSoup
import json
import datetime
from itertools import groupby
def get_soup(url):
html = requests.get(url)
soup = BeautifulSoup(html.content, "html.parser")
return soup