NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| #!/bin/bash | |
| # Play notification sound at givel volume with given file | |
| PATH_TO_NOTIFICATIONS="/home/USER/Music/notifications" | |
| PATH_TO_DING="/home/USER/Music/notifications/stop.wav" | |
| verbose=$3 | |
| sound_volume=$1 | |
| file_to_play=$2 |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| VERSION BUILD=9030808 RECORDER=FX | |
| TAB T=1 | |
| URL GOTO=https://www.facebook.com/<YOUR_ID_OF_PAGE>/allactivity?privacy_source=activity_log&log_filter=cluster_11 | |
| WAIT SECONDS=2 | |
| TAG POS=1 TYPE=A ATTR=data-tooltip-content:Дозволено<SP>в<SP>життєписі | |
| TAG POS=2 TYPE=SPAN ATTR=TXT:Видалити | |
| TAG POS=1 TYPE=BUTTON ATTR=TXT:Видалити<SP>допис | |
| WAIT SECONDS=5 | |
| TAG POS=1 TYPE=A ATTR=data-tooltip-content:Дозволено<SP>в<SP>життєписі |
| VERSION BUILD=1001 RECORDER=CR | |
| URL GOTO=https://www.facebook.com/PROFILE_ID_NAME_ETC/allactivity?privacy_source=activity_log&log_filter=cluster_116 | |
| WAIT SECONDS=5 | |
| TAG POS=1 TYPE=A ATTR=aria-label:Редагувати | |
| TAG POS=1 TYPE=SPAN ATTR=TXT:Видалити | |
| WAIT SECONDS=5 |
| #! /usr/bin/env python3 | |
| # coding=utf-8 | |
| __author__ = 'danilcha' | |
| # Change history | |
| # 2015-11-16 Add note about new API method after VK_module update, and new list parsing method. | |
| import vk | |
| from time import gmtime, strftime | |
| curr_date = strftime("%Y-%m-%d") |
| var myList = Args.post_id_array_str; | |
| var listSeparator = ","; | |
| var listItemsType = "integer"; | |
| var result = []; | |
| var charsLength = myList.length; | |
| var currentPosition = 0; | |
| var previousSeparatorPosition = -1; | |
| var item; | |
| while (currentPosition < charsLength) { | |
| if (myList.substr(currentPosition, 1) == listSeparator) { |
| var comment; | |
| var comment_id; | |
| var comment_from_id; | |
| var comment_date; | |
| var comment_likes; | |
| var comments_format; | |
| var comments_list = []; | |
| var myList = Args.post_id_array_str; | |
| var listSeparator = ","; |
| ''' | |
| This script is used to parse some html file | |
| where vk ids stored and then choose | |
| one of them randomly and export it to csv file | |
| 1. Replaced error with charset by replace character | |
| 2. Change the way how print was formatted | |
| 2.1 Added random - used range from list of ids | |
| 3. Added CSV export tool for one man | |
| ''' |
| var myList = Args.post_id_array_str; | |
| // List should end with separator, for exampe "," | |
| // car myList = 111,222,333,444, | |
| var listSeparator = ","; | |
| var listItemsType = "integer"; | |
| var result = []; | |
| var charsLength = myList.length; | |
| var currentPosition = 0; | |
| var previousSeparatorPosition = -1; |
| #!usr/bin/python3 | |
| # -*- coding: UTF-8 -*- | |
| """This module is a sample of the OAuth2 authentication by Python3""" | |
| __version__ = "0.1.0" | |
| __author__ = "shin (shin.hateblo.jp)" | |
| __copyright__ = "(C) 2012 shin" | |
| __email__ = "s2pch.luck@gmail.com" | |
| __license__ = "Apache License 2.0" |