REQUIREMENTS:
1.- Python3. You can download and install python on your computer if you don't have it already: https://www.python.org/
2.- The requests library:
	pip install requests
Optional if you want to use the alterative web browser method (Playwright)for scraping in case tikwm doesn't work:
	pip install playwright
    playwright install chromium
3.- ffmpeg. You can download excutables from here: https://github.com/BtbN/FFmpeg-Builds/releases. Needs to be in your PATH.

USAGE EXAMPLES:
	- This will download canthinky's videos until the first of October of 2023:
	python awemer.py -u canthinky -t 2023-10-01 
    python awemer.py --user canthinky --date 2023-10-01

	- It also supports downloading by ID. This will download all of the videos:
	python awemer.py -u 7257463534895367186

	- By default it will download the videos to a directory with the name of whatever you specify in the -u flag
	You can specify a custom directory, in this example the custom directory is "canthinky_videos":
	python awemer.py -u canthinky -d canthinky_videos -t 2023-10-01
	
	- Use http proxy:
	python awemer.py -u canthinky -d canthinky_videos -t 2023-10-01 -p http://localhost:8080
    python awemer.py --user canthinky --download_dir canthinky_videos --date 2023-10-01 --proxy http://localhost:8080
    
    - Add video description:
    python awemer.py -u canthinky -t 2023-10-10 -s
    python awemer.py -u canthinky -t 2023-10-10 --description
    
    - Download from a text file:
    python awemer.py -u profiles.txt -t 2023-10-10
    
    - Print userID and secID:
    python awemer.py -u canthinky -i
    python awemer.py -u canthinky --info
    
    - Add video date to the filename:
    python awemer.py -u canthinky -t 2023-10-10 -ad
    python awemer.py -u canthinky -t 2023-10-10 --add_date
    
    - Skip existing SD videos (don't try to download a possible HD version):
    python awemer.py -u canthinky -t 2023-10-10 -se
    python awemer.py -u canthinky -t 2023-10-10 --skip_existing
    
    - Run scraper in loop, sleeping/waiting X seconds between each iteration (5 seconds in this example):
    python awemer.py -u canthinky -t 2023-10-10 -l 5
    python awemer.py -u canthinky -t 2023-10-10 --loop 5
    
    - "Notify" when a new video is posted, works better running in loop
    python awemer.py -u canthinky -t 2023-10-20 -l 60 -n
    python awemer.py -u canthinky -t 2023-10-20 -l 60 --notify
    
    - Download 4 videos in parallel:
    python awemer.py -u canthinky -t 2023-11-01 -md 4
    python awemer.py -u canthinky -t 2023-11-01 --max_downloads 4
    
    - Download photo posts:
    python awemer.py -u canthinky -t 2023-11-01 -dp
    python awemer.py -u canthinky -t 2023-11-01 --download_photos
    
    - Download photo posts as a zip file:
    python awemer.py -u canthinky -t 2023-11-01 -dp -zp
    python awemer.py -u canthinky -t 2023-11-01 --download_photos --zip_photos
    
    - Download user stories:
    python awemer.py -u canthinky -st -c sid_tt_value
    python awemer.py -u canthinky --stories --cookie sid_tt_value
    
    - Using RapiAPI API key
    python awemer.py -u canthinky -t 2024-05-05 -twm YOUR-API-KEY
    python awemer.py -u canthinky -t 2024-05-05 --tikwm YOUR-API-KEY
   
   - Downloading multiple profiles:
   	python awemer.py -u canthinky strifecos -t 2024-05-05
   
   - Add username:
   	python awemer.py -u canthinky -t 2024-05-16 -au
    python awemer.py -u canthinky -t 2024-05-16 --add_username
    
    - Embed metadata:
        python awemer.py -u canthinky -em
        python awemer.py -u canthinky --embed_metadata
    
    - Download videos to a folder named as the current username:
    python awemer.py -u 7165852795429323777 -t 2024-05-17 --as_user
    
    - Convert downloaded HEVC videos to x264:
    python awemer.py -u canthinky -t 2024-08-20 --convert
    
    - Delete original HEVC videos after converting them to x264:
    python awemer.py -u canthinky -t 2024-08-20 --convert --delete_orig
    
    - Download a single post (video/photopost/story)
    python awemer.py -v 7424722633326923028
    python awemer.py -v https://www.tiktok.com/@canthinky/video/7424722633326923028 -em
    python awemer.py --video https://m.tiktok.com/7424722633326923028.html -ad --convert
    python awemer.py --video https://vm.tiktok.com/xxxxxxx/ --as_user
    
    - Download liked videos (they must be public)
    python awemer.py -u canthinky --likes
