reddit

如何在YouTube上获得订阅者:完整指南

眉间皱痕 提交于 2020-02-25 16:14:16
YouTube仍然是最受欢迎的在线视频分享平台,尽管Facebook,Snapchat和Instagram最近出现了潜在的竞争对手。每天, YouTube用户都会观看至少10亿小时的视频 。另一方面,贡献者每分钟向社交媒体平台发布至少300小时的视频。 按照上面提到的数字,很明显,YouTube可以成为一个令人难以置信的营销渠道。然而,主要的挑战是各种内容创作者之间的激烈竞争,以引起网站用户的注意。 您频道上的订阅者数量是衡量您在YouTube上的受欢迎程度的最佳指标。 显然,更多的订阅者会转换为您发布的视频的更多视图。更高的观看次数意味着更多的收入,而对于企业所有者来说,它可能会增加您商业网站的流量。 那么,如何让更多订阅者加入您的频道? 嗯,这并不容易。但是,您应该感到有些欣慰,因为相当大比例的内容创作者不了解可以帮助他们吸引订阅者加入其频道的策略。因此,如果您能够提出将YouTube用户吸引到您的频道的策略,您很快就会利用这个热门平台的众多优势。 够了,这里有一些经过验证的方法可以让更多 订阅者加入您的YouTube频道。 选择频道主题 从用户的角度思考。他们为什么要订阅特定频道?通常,订阅的主要原因是因为用户知道您对频道的期望。 例如,发布各种主题的随机视频的频道不太可能吸引 许多订阅者 。相反,一个专注于一个主题的频道,比如“数字营销技巧”

基于投票的热门计数算法策略

拥有回忆 提交于 2020-02-11 03:05:22
类似基于投票的热门计数算法普遍应用在热门文章,热门评论等场景中, 典型的比如网易和今日头条的评论区,国外比如Hacker News和Reddit的主题排序。 一.Hacker News的排序算法 Hacker News是一个主题社区,用户可以为主题投票,根据得票数,系统自动统计出热门文章排行榜。 同时主题发表时间也会对排名产生影响,新发表的主题比旧的主题更容易得到好的排名。 Hacker News的排名算法是这样实现的: (p – 1) / (t + 2)^G 其中,   P表示帖子的得票数,减去1是为了忽略发帖人的投票。   T表示距离发帖的时间(单位为小时),加上2是为了防止最新的帖子导致分母过小(之所以选择2,可能是因为从原始文章出现在其他网站,到转贴至Hacker News,平均需要两个小时)。   G表示"重力因子"(gravityth power),即将帖子排名往下拉的力量,默认值为1.8。 从这个公式来看,决定帖子排名有三个因素: 第一个因素是得票数P。 在其他条件不变的情况下,得票越多,排名越高。 第二个因素是距离发帖的时间T。 在其他条件不变的情况下,越是新发表的帖子,排名越高。或者说,一个帖子的排名,会随着时间不断下降。 第三个因素是因子G。 它的数值大小决定了排名随时间下降的速度。 G值越大,排名下降得越快,意味着排行榜的更新速度越快。 二

headers = {“Authorization”: “bearer ” + accessToken['access_token'], “User-Agent”: userAgent} KeyError: 'access_token'

不打扰是莪最后的温柔 提交于 2020-01-24 22:58:12
问题 I found this code in this SO's answer however when I run it I get this error: in redcom.py I have: import time import requests import requests.auth import praw username = 'myusername' userAgent = "reddit natural language processing " + username clientId = 'myclientid' clientSecret = "myclientsecret" password = "mypasswd" #app_uri = http://127.0.0.1:65010/authorize_callback def getPraw(): return praw.Reddit(user_agent=userAgent, client_id=clientId, client_secret=clientSecret) global

What is the alphanumeric id in a reddit URL?

╄→гoц情女王★ 提交于 2020-01-20 18:40:12
问题 What is the 7n5lu in the reddit URL http://www.reddit.com/r/reddit.com/comments/7n5lu/man_can_fly_if_you_watch_one_video_in_2 ...and how is it generated? Update: @Gerald, I initially thought this is some obfuscation of the id. It is just doing the conversion from integer to a more compact representation. I am thinking, why is this being done? why not use the original integer itself!! >>> to36(4000) '334' >>> to36(4001) '335' 回答1: The reddit source code is available! Here is what I found for

What is the alphanumeric id in a reddit URL?

心已入冬 提交于 2020-01-20 18:40:02
问题 What is the 7n5lu in the reddit URL http://www.reddit.com/r/reddit.com/comments/7n5lu/man_can_fly_if_you_watch_one_video_in_2 ...and how is it generated? Update: @Gerald, I initially thought this is some obfuscation of the id. It is just doing the conversion from integer to a more compact representation. I am thinking, why is this being done? why not use the original integer itself!! >>> to36(4000) '334' >>> to36(4001) '335' 回答1: The reddit source code is available! Here is what I found for

How to fix JSONException: End of input at character 0 of?

混江龙づ霸主 提交于 2020-01-16 08:19:27
问题 I'm trying to hit "askreddit API" following by this example: http://www.whycouch.com/2012/12/how-to-create-android-client-for-reddit.html But while running I'm getting this exception: E/fetchPosts(): org.json.JSONException: End of input at character 0 of I already searched about above exception, and solution says there is no value so instead of throwling NPE it is showing 0! But my problem is how to fix it? code: List<Post> fetchPosts() { String raw = RemoteData.readContents(url); List<Post>

Printing a list in Flask

巧了我就是萌 提交于 2020-01-11 10:37:53
问题 I want the script to make a list of the news headlines that it grabs from Reddit and display them as a text output. However it seems like the return function prevents me from doing that as it only lists one title. from flask import Flask import praw import config app = Flask(__name__) @app.route('/') def index(): reddit = praw.Reddit(client_id=config.client_id, client_secret=config.client_secret, user_agent="...") for submission in reddit.subreddit('worldnews').controversial(limit=10): print

How to take different input types and do something different with each? Python 3.5

允我心安 提交于 2020-01-06 22:04:13
问题 So I am trying to make a Reddit bot for personal use, as a learning project, and I am having trouble adding error exceptions for inputs. Here is the entire source code: http://pastebin.com/DYiun1ux The parts that are solely in question here are while True: if type(thing_limit) == int: print("That is a number, thanks.") break elif type(thing_limit) == float: print("You need a whole number.") sys.exit() elif type(thing_limit) == str: print("You need a whole number.") sys.exit() else: print(

How to take different input types and do something different with each? Python 3.5

一笑奈何 提交于 2020-01-06 22:03:08
问题 So I am trying to make a Reddit bot for personal use, as a learning project, and I am having trouble adding error exceptions for inputs. Here is the entire source code: http://pastebin.com/DYiun1ux The parts that are solely in question here are while True: if type(thing_limit) == int: print("That is a number, thanks.") break elif type(thing_limit) == float: print("You need a whole number.") sys.exit() elif type(thing_limit) == str: print("You need a whole number.") sys.exit() else: print(

Windows 95 的 UI 设计比 Windows 10 好?

给你一囗甜甜゛ 提交于 2020-01-05 22:10:46
  Windows 95 这种老古董的 UI 与 UX 设计最近在 Reddit 上突然得到了热烈的讨论。   UX 爱好者 Tuomas Salo 发布推文表达了他对于 Windows 95 在 UI 与 UX 设计上的赞赏,并称今天我们在这一方面反而把 95 的这些精华给丢掉了。   如给出的图片所标注的,Tuomas 具体说明了 <a href=" https://twitter.com/tuomassalo/status/978717292023500805">Windows 95 几个设计上的要点</a>:   Reddit 上这一话题的评论里,最高赞的是<a href=" https://www.reddit.com/r/programming/comments/eg7qb0/windows_95_ui_design/">对于 Windows 10 的吐槽</a>。用户觉得 Windows 10 设置菜单十分混乱,“我发誓,每当我想更改某些东西时,就像感觉我必须在某种迷宫中导航一样”。   他还表示,较旧的 UI 尽了最大的努力让其操作可预测,并且用户只需要了解它的工作方式即可,但是现代 UI 更像是 UI 在试图预测,或者去了解用户,这与前者完全相反。   你觉得呢? 来源: 51CTO 作者: smxik 链接: https://blog.51cto.com