Scrape chat content from TakeLessons.com
Project description
Scrape the chat logs from TakeLessons
What is this?
If you noticed that TakeLessons doesn't have an API or a way to export your own data you can use this package to get at it.
How do I use it?
Prerequisites
- Install Chrome
- Find the correct selenium driver version for your install here
- Add it to PATH or make a note of where it is
Example
####
# Assume some db object you can save your data to
db = SomeDBStore()
####
from takelessons_scraper import TakeLessonsScraper
chromedriver_path = '/path/to/chromedriver'
username = 'username'
password = 'password'
scraper = TakeLessonsScraper(chromedriver_path)
# login to load cookies behind scenes
scraper.login(username, password)
# get a block of chat data up to date
chat_date = '2020-01-01'
chat_log = scraper.get_chat_history(chat_date) # Chat obj, can get raw json back
db.save(chat_log)
Notes:
Please consider this a hobby project to be used as reference. Since it is a scraper I expect it to fail as regularly as the source is updated... which could be at any time and not within my control.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file takelessons-scraper-0.0.1.tar.gz
.
File metadata
- Download URL: takelessons-scraper-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906f51cd3a0f1ada24c4cc5148a5295f463bbf1faf09d17405d5d21312385b9b |
|
MD5 | f50e5d916ffb6cd2a60af0820fef31cf |
|
BLAKE2b-256 | 9e8a339fd3bf2025197ef35f87e729aab771102afd4567553e4009aaa914c38b |
File details
Details for the file takelessons_scraper-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: takelessons_scraper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d00cc1694a45ede18dce6e24b00dd0d6daf728729e28ca4f8745a224fbf768 |
|
MD5 | b65dd7660ddfc7316d5be3a590bcdc8b |
|
BLAKE2b-256 | 665e92a0a00a838db240703383f9f5d2d2615c41d9e1827285cca652df40e319 |