- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
def neuro_anec():
group_id = '85443458'
random.seed()
_vk_session = vk_api.VkApi(token=config.service)
_vk = _vk_session.get_api()
max_num = _vk.wall.get(owner_id=-int(group_id), count=0)['count']
try:
anec_base = ''
while len(anec_base.split('\n')) < 1 or anec_base == '':
num = random.randint(1, max_num)
anec_base = '\n'.join(
_vk.wall.get(owner_id=-int(group_id), count=1, offset=num)['items'][0]['text'].split('\n')[:-1])
num = random.randint(1, max_num)
anec_booter = _vk.wall.get(owner_id=-int(group_id), count=1, offset=num)['items'][0]['text'].split('\n')[-1]
return anec_base + '\n' + anec_booter
except:
return 'А хуй тебе'
Представляю вашему вниманию: ней(гей)росеть, генерирующая анеки категории Б
Steve_Brown 27.10.2020 12:04 # +2
guest8 27.10.2020 12:06 # −999
guest8 27.10.2020 12:17 # −999
TOPT 27.10.2020 12:49 # 0
guest8 27.10.2020 13:41 # −999
TOPT 27.10.2020 16:14 # 0
Fike 27.10.2020 13:52 # 0
guest8 27.10.2020 13:39 # −999
guest8 27.10.2020 13:42 # −999
guest8 27.10.2020 13:43 # −999
guest8 27.10.2020 13:44 # −999
guest8 27.10.2020 13:46 # −999
guest8 27.10.2020 13:45 # −999
guest8 27.10.2020 13:46 # −999
Rooster 27.10.2020 15:40 # 0
lpjakewolfskin 27.10.2020 12:14 # +1
Saehrimnir 27.10.2020 15:35 # +1
guest8 27.10.2020 18:38 # −999
Saehrimnir 27.10.2020 19:34 # 0
guest8 27.10.2020 19:38 # −999
Rooster 27.10.2020 13:52 # 0
oaoaoammm 27.10.2020 14:12 # 0
lpjakewolfskin 27.10.2020 17:35 # 0
guest8 27.10.2020 17:37 # −999
Arbatan_Pokrovan 27.10.2020 18:11 # 0
guest8 27.10.2020 18:21 # −999
bagrinho 27.10.2020 18:24 # 0
guest8 27.10.2020 18:27 # −999
lpjakewolfskin 28.10.2020 08:45 # 0
bagrinho 27.10.2020 18:24 # 0
bagrinho 27.10.2020 18:24 # 0