<jupyter_start><jupyter_text>This code was taken from https://medium.com/c%C3%B3digo-ecuador/how-to-scrape-cryptocurrency-data-prices-volume-percent-change-dbb77c11fd82

But it is broken. Yay!<jupyter_code>from datetime import datetime, timedelta
import time, requests, pandas, lxml
from lxml import html


date_timetuple = date_datetime.timetuple()

date_mktime = time.mktime(date_timetuple)
date_int = int(date_mktime)
date_str = str(date_int)
def format_date(date_datetime):
     date_timetuple = date_datetime.timetuple()
     date_mktime = time.mktime(date_timetuple)
     date_int = int(date_mktime)
     date_str = str(date_int)
     return date_str
datetime_start = datetime.today() - timedelta(days=1000)
datetime_end = datetime.today() #Define end date as today's date

start = format_date(dt_start)
end = format_date(dt_end)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09714285714285714, 'fraction_numerical': 0.013714285714285714, 'mean_word_length': 5.488888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '313365', 'license': 'Apache-2.0', 'n_tokens_mistral': 329, 'n_tokens_neox': 312, 'n_words': 59, 'path': 'docs/report/su21-reu-361/project/failed code/price_scraper2.0.ipynb', 'repo_name': 'mikahla1/cybertraining-dsc.github.io', 'size': '875'}