bitchute_facade.py 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. def register_content_sources ():
  2. """
  3. bitchute:channel:
  4. bitchute:video:
  5. bitchute:profile:user:
  6. bitchute:videos:channel:
  7. bitchute:comments:video:
  8. """
  9. pass
  10. def get_bitchute_comments ():
  11. """
  12. script
  13. initComments(
  14. 'https://commentfreely.bitchute.com',
  15. 'eyJwcm9maWxlX2lkIjogImFub255bW91cyIsICJvd25lcl9pZCI6ICJ2UkI1eFpXVW5EYlAiLCAiZGlzcGxheV9uYW1lIjogImFub255bW91cyIsICJ0aHJlYWRfaWQiOiAiYmNfMnFDQ3dyWm9kcXVxIiwgImljb25fdXJsIjogIi9zdGF0aWMvdjE0MS9pbWFnZXMvYmxhbmstcHJvZmlsZS5wbmciLCAiY2ZfaXNfYWRtaW4iOiAiZmFsc2UiLCAiY2hhbm5lbF9pZCI6ICJhZ0R1aVcxQWhXeHoifQ== 1f280c339d11ce063d204d66f4fe38fa938474290994899d5128d3a2ee79c471 1679618698',
  16. 'anonymous'
  17. function initComments(cf_url, cf_auth, currentUserId,
  18. profilePictureURL, commentCountDeprecated, refreshAction, isThreadAdmin, isSupporter, isBlocked) {
  19. getComments: function(success, error) {
  20. var isFirstCall = !window.getCommentsTime;
  21. getCommentsTime = Date.now();
  22. $.ajax({
  23. type: 'post',
  24. url: cf_url + '/api/get_comments/',
  25. data: {
  26. cf_auth: cf_auth,
  27. commentCount: (isFirstCall) ? 0 : localCommentCount || -1,
  28. isNameValuesArrays: true
  29. },
  30. success: function(comments) {
  31. localCommentCount = comments.values.length;
  32. commentCount = comments.normalizedCommentCount;
  33. lastCallTime = comments.callTime;
  34. dynamicCacheSeconds = comments.dynamicSeconds;
  35. success(comments)
  36. },
  37. e
  38. Request headers:
  39. authority: commentfreely.bitchute.com
  40. origin: https://www.bitchute.com
  41. referer: https://www.bitchute.com/
  42. content-type: application/x-www-form-urlencoded; charset=UTF-8
  43. Response
  44. {
  45. "names": [
  46. "id",
  47. "parent",
  48. "created",
  49. "modified",
  50. "content",
  51. "pings",
  52. "creator",
  53. "fullname",
  54. "created_by_admin",
  55. "created_by_current_user",
  56. "up_vote_count",
  57. "down_vote_count",
  58. "user_vote",
  59. "is_new",
  60. "profile_picture_url",
  61. "attachments"
  62. ],
  63. "values": [
  64. [
  65. "0LAnLMLmA66dSLbK0ur25CPoPITCsId9eE46",
  66. null,
  67. "2023-03-24 00:19:44.371714+00:00",
  68. null,
  69. "Love you Blue",
  70. [],
  71. "mW6Q8LlCDs7Y",
  72. "Joelkenimer",
  73. false,
  74. false,
  75. 5,
  76. 2,
  77. null,
  78. false,
  79. "/static/v141/images/blank-profile.png",
  80. []
  81. ],
  82. [
  83. "k9KG622jF7IJ6bJvOiqpE9HdYgvl254DbE3M",
  84. null,
  85. "2023-03-24 00:22:12.367094+00:00",
  86. null,
  87. "OK pls send us a link for Odysee if that happens.",
  88. [],
  89. "OTjfEnZ1HrAC",
  90. "danortego",
  91. false,
  92. false,
  93. 8,
  94. 0,
  95. null,
  96. false,
  97. "/static/v141/images/blank-profile.png",
  98. []
  99. ],
  100. [
  101. "z3EdQTt21UCVmqeeymvuN0BV1vnvJpTs4COR",
  102. null,
  103. "2023-03-24 00:23:40.374960+00:00",
  104. null,
  105. "I'm very happy about that C21 and Ryu",
  106. [],
  107. "qgjwPrLKPkDN",
  108. "MayQ",
  109. false,
  110. false,
  111. 4,
  112. 1,
  113. null,
  114. false,
  115. "/static/v141/images/blank-profile.png",
  116. []
  117. ],
  118. [
  119. "wdGCZbdx9aCwZ4fDGvAg0tk58wEKS1L481Te",
  120. null,
  121. "2023-03-24 00:24:06.963831+00:00",
  122. null,
  123. "What is Odysee?",
  124. [],
  125. "NNTNz25N0fwU",
  126. "eseme",
  127. false,
  128. false,
  129. 3,
  130. 1,
  131. null,
  132. false,
  133. "/static/v141/images/blank-profile.png",
  134. []
  135. ],
  136. [
  137. "69qwpTIezaJCb0AHunNBghQMPFcXWowWWiK0",
  138. null,
  139. "2023-03-24 00:24:10.178391+00:00",
  140. null,
  141. "I am really starting to get why this has to be a soft exposure! The normies are going to literally freak the FARK out! Thanks BW your dedication to getting this out is truly appreciated!",
  142. [],
  143. "vcWaw0oRGYPZ",
  144. "3nd5laveryQ",
  145. false,
  146. false,
  147. 6,
  148. 1,
  149. null,
  150. false,
  151. "https://static-3.bitchute.com/live/profile_images/vcWaw0oRGYPZ/nhl3wJhdEu8OYdvTaGOVXBy7_medium.jpg",
  152. []
  153. ],
  154. [
  155. "wr5uoJppgCBrHn21eIydrAEHQ6ZEhn7nn7tR",
  156. null,
  157. "2023-03-24 00:25:43.415416+00:00",
  158. null,
  159. "Thank you to both Christian21 and bluewater. I'm glad that Ryushin apologized, we all make mistakes, none of us is perfect.",
  160. [],
  161. "7EVG4eljblWD",
  162. "kg78bv2",
  163. false,
  164. false,
  165. 5,
  166. 1,
  167. null,
  168. false,
  169. "/static/v141/images/blank-profile.png",
  170. []
  171. ],
  172. [
  173. "2bNNBVb6ySQ0tNHkNoURaWavXPyL6tmE0dkP",
  174. "wdGCZbdx9aCwZ4fDGvAg0tk58wEKS1L481Te",
  175. "2023-03-24 00:27:15.508892+00:00",
  176. null,
  177. "It is an app like Rumble and BitChute that Bluewater is on.",
  178. [],
  179. "DAu6hPe36k5K",
  180. "PJStitcher",
  181. false,
  182. false,
  183. 2,
  184. 1,
  185. null,
  186. false,
  187. "/static/v141/images/blank-profile.png",
  188. []
  189. ],
  190. [
  191. "opFpX4MxSdZYMgXn7m0V8HFoahZ9TOF3XIwd",
  192. null,
  193. "2023-03-24 00:32:36.503395+00:00",
  194. null,
  195. "💜💜💜",
  196. [],
  197. "zC9exgm75dJG",
  198. "Janeybell",
  199. false,
  200. false,
  201. 1,
  202. 0,
  203. null,
  204. false,
  205. "/static/v141/images/blank-profile.png",
  206. []
  207. ],
  208. [
  209. "1XEXyQ5Gs8Wqi7JNCMIqpivvMcwfl5jEKZKV",
  210. null,
  211. "2023-03-24 00:34:58.928846+00:00",
  212. null,
  213. "Thank you for this Blue and Christian21!",
  214. [],
  215. "b1cOBqmTurdZ",
  216. "fuchsia",
  217. false,
  218. false,
  219. 0,
  220. 0,
  221. null,
  222. false,
  223. "https://static-3.bitchute.com/live/profile_images/b1cOBqmTurdZ/pfykURW9xNIULWdFaCNtQQoa_medium.jpg",
  224. []
  225. ],
  226. [
  227. "j4VhOHiDfCFzY78XWr7FyxjCZV3Fcxmt9ORd",
  228. "wdGCZbdx9aCwZ4fDGvAg0tk58wEKS1L481Te",
  229. "2023-03-24 00:36:22.977951+00:00",
  230. null,
  231. "https://odysee.com/@Bluewater:e",
  232. [],
  233. "S39g9uIZsV8L",
  234. "lupin in the green",
  235. false,
  236. false,
  237. 1,
  238. 0,
  239. null,
  240. false,
  241. "https://static-3.bitchute.com/live/profile_images/S39g9uIZsV8L/E61gvkIIRWiJQE2aNducAcuv_medium.jpg",
  242. []
  243. ]
  244. ],
  245. "callTime": "1679618290.1224425",
  246. "dynamicSeconds": 300,
  247. "normalizedCommentCount": 10,
  248. "isUniversalPin": false,
  249. "pinnedCommentId": null
  250. }
  251. """
  252. pass