百家号跳转官网操作全解析(如何实现百家号内容留链接...
百家号跳转官网操作全解析(如何实现百家号内容留链接的操作方法步骤)废话不多说,直接说重点:
小白实现这操作有两个难点:
1、如何转码成百度开头的链接;
2、如何把链接发布到百家号上(直接在百家号上发布是无法搞带外部链接的)
实现第一步,可以使用一个在线工具,也可以直接用PY代码来操作。PY代码如下,转换网址可以搜索 在线PY运行
以www.4414.cn为目标网址,贴出具体代码,用时把www.4414.cn替换成自己网址即可。
由于贴上代码总窜行,影响大伙阅读,弄成附件,大家自己去下吧!
有了网址,接下来就是把网址放进百家号编辑器中了,这步也很关键!看好操作哦,一般人不告诉的!
使用百家号的编辑框找到导入文档,如图:
txt文档内容如框内信息,进行对应替换即可!
文档格式下载
由于加链接效果屏蔽了,看截图更全,然后把上面内容存成txt文档,然后导入百家号编辑器中!美化一下,如下图:
加个标题,发布即可成功!是不是很简单!?!!!
还不实操起来?!!这货可价值好几百块钱呢!~!
好用不?好用就告诉你的好朋友吧!
方法仅供参考 温馨提示:但此操作有封号风险!
import os
ascii = [
[
' ', '!', '"', '#', '
, '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/'],
[
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?'],
[
'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O'],
[
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_'],
[
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o'],
[
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', ' ']]
data = [
[
13, 10],
[
10, 1],
[
16, 15],
[
7, 6],
[
5, 13],
[
18, 9],
[
13, 11],
[
7, 12],
[
10, 5],
[
15, 9],
[
15, 9],
[
13, 5],
[
16, 11],
[
0, 1],
[
8, 2],
[
8, 5],
[
0, 0],
[
17, 15],
[
14, 8],
[
2, 1],
[
10, 5],
[
17, 14],
[
16, 5],
[
3, 8],
[
14, 9],
[
5, 8],
[
15, 1],
[
3, 15],
[
13, 10],
[
10, 12],
[
5, 7],
[
0, 2],
[
18, 14],
[
0, 15],
[
1, 6],
[
13, 5],
[
2, 1],
[
15, 14],
[
18, 8],
[
18, 9],
[
1, 10],
[
14, 14],
[
13, 2],
[
5, 3],
[
5, 8],
[
0, 4],
[
1, 5],
[
16, 1],
[
8, 1],
[
2, 5],
[
10, 7],
[
10, 15],
[
14, 14],
[
17, 3],
[
15, 0],
[
14, 5],
[
7, 7],
[
3, 4],
[
14, 8],
[
12, 0],
[
13, 12],
[
12, 3],
[
6, 5],
[
3, 1],
[
1, 14],
[
5, 4],
[
0, 12],
[
7, 0],
[
10, 7],
[
15, 12],
[
8, 2],
[
18, 15],
[
3, 12],
[
1, 12],
[
0, 15],
[
17, 4],
[
17, 2],
[
11, 1],
[
3, 12],
[
11, 5],
[
0, 13],
[
1, 1],
[
2, 12]]
y = [
'0123456789abcdef',
'1032547698badcfe',
'23016745ab89efcd',
'32107654ba98fedc',
'45670123cdef89ab',
'54761032dcfe98ba',
'67452301efcdab89',
'76543210fedcba98',
'89abcdef01234567',
'98badcfe10325476',
'ab89efcd23016745',
'ba98fedc32107654',
'cdef89ab45670123',
'dcfe98ba54761032',
'efcdab8967452301',
'fedcba9876543210']
x = [
'016745',
'107654',
'234567',
'321076',
'325476',
'452301',
'543210',
'670123',
'765432',
'761032',
'89abcd',
'89efcd',
'98fedc',
'abcdef',
'badcfe',
'cdab89',
'dcba98',
'ef89ab',
'fe98ba']
def encode_url(url):
print(url)
url_re = ''
mi = ''
for i, ch in enumerate(url):
f_real_x = None
f_real_y = None
for real_x, real_y_chs in enumerate(ascii):
for real_y, real_y_ch in enumerate(real_y_chs):
if real_y_ch == ch:
f_real_x = real_x
f_real_y = real_y
if f_real_y is not None and f_real_x is not None:
this_data_x = x]
encode_x = this_data_x
mi = mi + encode_x
this_data_y = y]
encode_y = this_data_y
mi = mi + encode_y
return 'http://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99' + mi
if __name__ == '__main__':
t = encode_url("www.4414.cn");
print(t)
print(t)
页:
[1]