http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
from typing import List, Iterable, Mapping | |
from diff_match_patch import DiffMatchPatch # https://github.com/google/diff-match-patch/blob/master/python3/diff_match_patch.py | |
def _index_or_none(items: list, index: int): | |
try: | |
return items[index] | |
except IndexError: | |
return None |