Posts

Showing posts from November, 2017

Connect VPN via Python

Here we are going to connect the VPN services through the python. After connect the VPN we can crawl the blocked website and so on. The script going to use the free VPN services provided by VPNGate . The VPN based on the user input countries. Prerequired Open vpn must be available in your system. Use the below command to install open vpn in your linux machine, 1 apt-get install openvpn easy-rsa further more details for the installation , Please follow the link install openvpn Usage Run the script by providing the desired output country like given below, 1 python script.py IN Instead of giving country short name we can use the full name like given below, 1 python script.py India further supported country information list available in that link. Please click me to see the details The connection script is given below, Here we are checked the ip address instance after connected through the vpn. 1 2 3 4 5 6 7 8 9 10 11 12 13 ...

Send Push Notification to iPhone via Python

Image
Notification is the big picture of current day to day applications. So today we are going to look into iPhone push notification. We already seen how to send email notification using python. The to hot topic we are going to deep is How to send push notification to iPhone's . Description     Here we are going to use the Apple push notification service. Through python code we have to send the notification to Apple service with device id . Once we send the notification to apple service, they will take care to deliver this notification to appropriate device. Pre-Requesting  We must enable APNS service. To follow this link to enable the APNS service. APNS will generate the certificate after enable the service. Sample code The below code snapshot will have the sample code for to send push notification to IOS device through the apple sandbox mode in testing purpose, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ...