MCPcopy
hub / github.com/nghuyong/WeiboSpider / url_to_mid

Function url_to_mid

weibospider/spiders/common.py:45–50  ·  view source on GitHub ↗

>>> url_to_mid('z0JH2lOMb') 3501756485200075

(url: str)

Source from the content-addressed store, hash-verified

43
44
45def url_to_mid(url: str):
46 """>>> url_to_mid('z0JH2lOMb')
47 3501756485200075
48 """
49 result = reverse_cut_to_length(url, base62_decode)
50 return int(result)
51
52
53def parse_time(s):

Callers 2

start_requestsMethod · 0.90
start_requestsMethod · 0.90

Calls 1

reverse_cut_to_lengthFunction · 0.85

Tested by

no test coverage detected