This file contains hidden or 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 | |
from bs4 import BeautifulSoup | |
longURL = input('Enter the long media URL: ') | |
homePageURL = "https://tools.applemediaservices.com/" | |
homePageRequest = requests.get(homePageURL) | |
soup = BeautifulSoup(homePageRequest.content, "lxml") | |
meta = soup.find("meta", attrs={'name': 'csrf-token'}) |
This file contains hidden or 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
{ | |
"kind": "youtube#videoListResponse", | |
"etag": "uFAZK6gMs-vWa9z2Z_m7CX5asXM", | |
"items": [ | |
{ | |
"kind": "youtube#video", | |
"etag": "hYMZ2Vgp3in1woc8Ou0LH8XGN1Y", | |
"id": "ISdBAf-ysI0", | |
"snippet": { | |
"publishedAt": "2018-03-20T17:00:01Z", |
This file contains hidden or 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
/***************************************************************************** | |
* FeedbackGenerators.swift | |
* Neon: Capture, Edit, Share | |
***************************************************************************** | |
* Copyright (c) 2020 Neon. All rights reserved. | |
* | |
* Authors: Swapnanil Dhol <swapnanildhol # gmail.com> | |
* | |
* Refer to the COPYING file of the official project for license. | |
*****************************************************************************/ |
This file contains hidden or 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
// | |
// ItemDetailSource.swift | |
// StickerTweet | |
// | |
// Created by Swapnanil Dhol on 7/9/20. | |
// Copyright © 2020 Swapnanil Dhol. All rights reserved. | |
// | |
import UIKit | |
import LinkPresentation |
This file contains hidden or 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
// | |
// UITableView+EmptyView.swift | |
// StickerTweet | |
// | |
// Created by Swapnanil Dhol on 7/6/20. | |
// Copyright © 2020 Swapnanil Dhol. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or 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
// | |
// AppIconChangeController.swift | |
// Color Picker | |
// | |
// Created by Swapnanil Dhol on 2/5/20. | |
// Copyright © 2020 Swapnanil Dhol. All rights reserved. | |
// | |
import UIKit | |
class AppIconChangeController: UIViewController { |
This file contains hidden or 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
// | |
// SettingsViewController.swift | |
// ColorPicker | |
// | |
// Created by Swapnanil Dhol on 9/13/19. | |
// Copyright © 2019 Swapnanil Dhol. All rights reserved. | |
// | |
import UIKit | |
import TipJarViewController | |
import SafariServices |
This file contains hidden or 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
guard let type = UIDevice.current.deviceType else {return} | |
print(type) |
This file contains hidden or 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
extension UIDevice | |
{ | |
var deviceType: DeviceType? { | |
#if targetEnvironment(macCatalyst) | |
return .mac | |
#else | |
switch UIDevice.current.userInterfaceIdiom | |
{ | |
case .phone: |
This file contains hidden or 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
enum DeviceType | |
{ | |
case phone | |
case pad | |
case mac | |
} |
NewerOlder