This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parameter for JSON file path | |
param( | |
[Parameter(Mandatory = $true)] | |
[string]$jsonFilePath | |
) | |
# Ensure the JSON file exists | |
if (-Not (Test-Path -Path $jsonFilePath)) { | |
Write-Host "JSON file not found at $jsonFilePath" -ForegroundColor Red | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parameters for JSON file path and private key file path | |
param( | |
[Parameter(Mandatory = $true)] | |
[string]$jsonFilePath, | |
[Parameter(Mandatory = $true)] | |
[string]$privateKeyPath | |
) | |
# Check if the JSON file exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim pdf(1024) | |
pdf(0) = "JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdG" | |
pdf(1) = "Fsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbikgL1N0cnVjdFRyZWVS" | |
pdf(2) = "b290IDEwIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4vTW" | |
pdf(3) = "V0YWRhdGEgMjAgMCBSL1ZpZXdlclByZWZlcmVuY2VzIDIxIDAg" | |
pdf(4) = "Uj4+DQplbmRvYmoNCjIgMCBvYmoNCjw8L1R5cGUvUGFnZXMvQ2" | |
pdf(5) = "91bnQgMS9LaWRzWyAzIDAgUl0gPj4NCmVuZG9iag0KMyAwIG9i" | |
pdf(6) = "ag0KPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZX" | |
pdf(7) = "M8PC9Gb250PDwvRjEgNSAwIFI+Pi9FeHRHU3RhdGU8PC9HUzcg" | |
pdf(8) = "NyAwIFIvR1M4IDggMCBSPj4vUHJvY1NldFsvUERGL1RleHQvSW" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.com | |
youtube.com | |
tmall.com | |
baidu.com | |
qq.com | |
sohu.com | |
facebook.com | |
taobao.com | |
360.cn | |
jd.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tests | |
video_url = input("Enter video URL: ") | |
output_name = input("Enter output file name (i.e. sample.mp4): ") | |
tests.my_module(video_url, output_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
def my_module(video_url_, output_name): | |
""" | |
This module can be used to download instagram videos, | |
You can pass two arguments, video url & output name | |
i.e. my_module('https://www.instagram.com/p/B82F0mJhiUV/', 'sample.mp4') | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Help on module tests: | |
NAME | |
tests | |
FUNCTIONS | |
my_module(video_url_, output_name) | |
This module can be used to download instagram videos, | |
You can pass two arguments, video url & output name | |
i.e. my_module('https://www.instagram.com/p/B82F0mJhiUV/', 'sample.mp4') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
video_url_ = input("Enter video URL: ") | |
output_name = input("Enter a name for the output file (i.e. sample.mp4): ") | |
grab_source_code = requests.get(str(video_url_)) | |
grab_video_link = re.search(r'"video_url":"(.*?)"', str(grab_source_code.text)).group(1) | |
unicode_removed = grab_video_link.replace(r"\u0026", "&") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
# code jadid | |
output_name = 'sample.mp4' | |
video_url_ = 'https://www.instagram.com/p/B82F0mJhiUV/' | |
grab_source_code = requests.get(str(video_url_)) | |
print(grab_source_code.text) | |
grab_video_link = re.search(r'"video_url":"(.*?)"', str(grab_source_code.text)).group(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
video_url_ = 'https://www.instagram.com/p/B82F0mJhiUV/' | |
grab_source_code = requests.get(str(video_url_)) | |
print(grab_source_code.text) | |
grab_video_link = re.search(r'"video_url":"(.*?)"', str(grab_source_code.text)).group(1) | |
print(grab_video_link) | |
unicode_removed = grab_video_link.replace(r"\u0026", "&") |
NewerOlder