@iflyrpa/actions 4.0.4-beta.6 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +5 -9
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b88e36bc-ad59-5586-98ef-aba93fe1c33f")}catch(e){}}();
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_crypto__ from "crypto";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_package_json_58ae5f06__ from "@iflyrpa/share/package.json";
|
|
@@ -4352,7 +4352,9 @@ function __webpack_require__(moduleId) {
|
|
|
4352
4352
|
return module;
|
|
4353
4353
|
};
|
|
4354
4354
|
})();
|
|
4355
|
-
var package_namespaceObject =
|
|
4355
|
+
var package_namespaceObject = {
|
|
4356
|
+
i8: "4.0.4"
|
|
4357
|
+
};
|
|
4356
4358
|
const PROXY_CREDENTIALS = [
|
|
4357
4359
|
{
|
|
4358
4360
|
ip: "47.110.131.129",
|
|
@@ -15387,7 +15389,6 @@ async function getDouyinData(_task, params) {
|
|
|
15387
15389
|
fansNum = toNum(user.follower_count);
|
|
15388
15390
|
followingNum = toNum(user.following_count);
|
|
15389
15391
|
favedNum = toNum(user.total_favorited);
|
|
15390
|
-
_task.logger.info(`提取用户数据 - 昵称: ${user.nickname}, 粉丝: ${fansNum}, 关注: ${followingNum}, 获赞: ${favedNum}, 作品: ${user.aweme_count}`);
|
|
15391
15392
|
} else _task.logger.warn(`用户信息接口返回异常: status_code=${userProfile?.status_code}, msg=${userProfile?.status_msg}`);
|
|
15392
15393
|
const ov = overview?.data;
|
|
15393
15394
|
const douyinData = {
|
|
@@ -15519,7 +15520,6 @@ async function getShipinhaoData(_task, params) {
|
|
|
15519
15520
|
playNumYesterday = Number.parseInt(data.browse?.[1] || "0", 10) || 0;
|
|
15520
15521
|
likeNumYesterday = Number.parseInt(data.like?.[1] || "0", 10) || 0;
|
|
15521
15522
|
commentNumYesterday = Number.parseInt(data.comment?.[1] || "0", 10) || 0;
|
|
15522
|
-
_task.logger.info(`视频号昨日数据提取成功 - 净增关注:${fansNumYesterday}, 播放:${playNumYesterday}, 喜欢:${likeNumYesterday}, 评论:${commentNumYesterday}`);
|
|
15523
15523
|
}
|
|
15524
15524
|
} catch (error) {
|
|
15525
15525
|
const errMsg = error instanceof Error ? error.message : String(error);
|
|
@@ -16156,7 +16156,6 @@ async function handleShipinhaoData(_task, params) {
|
|
|
16156
16156
|
allPosts.push(...posts);
|
|
16157
16157
|
continueFlag = response.data?.continueFlag ?? false;
|
|
16158
16158
|
rawKeyBuff = response.data?.lastBuff || "";
|
|
16159
|
-
_task.logger.info(`获取${11 === userpageType ? "视频" : "图文"}第${currentPage}页,本页${posts.length}条,累计${allPosts.length}条,continueFlag=${continueFlag}`);
|
|
16160
16159
|
currentPage++;
|
|
16161
16160
|
if (currentPage > 100) {
|
|
16162
16161
|
_task.logger.warn("分页超过100页,停止请求");
|
|
@@ -16211,7 +16210,6 @@ async function handleShipinhaoData(_task, params) {
|
|
|
16211
16210
|
if (needVideo) try {
|
|
16212
16211
|
const videoPageUrl = "https://channels.weixin.qq.com/micro/content/post/list";
|
|
16213
16212
|
const { posts, totalCount } = await fetchAllPosts(11, videoPageUrl);
|
|
16214
|
-
_task.logger.info(`视频号视频获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
16215
16213
|
const videoArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "video"));
|
|
16216
16214
|
allArticles.push(...videoArticles);
|
|
16217
16215
|
combinedTotal += totalCount || videoArticles.length;
|
|
@@ -16223,7 +16221,6 @@ async function handleShipinhaoData(_task, params) {
|
|
|
16223
16221
|
if (needArticle) try {
|
|
16224
16222
|
const articlePageUrl = "https://channels.weixin.qq.com/micro/content/post/finderNewLifePostList";
|
|
16225
16223
|
const { posts, totalCount } = await fetchAllPosts(10, articlePageUrl);
|
|
16226
|
-
_task.logger.info(`视频号图文获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
16227
16224
|
const articleArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "article"));
|
|
16228
16225
|
allArticles.push(...articleArticles);
|
|
16229
16226
|
combinedTotal += totalCount || articleArticles.length;
|
|
@@ -16236,7 +16233,6 @@ async function handleShipinhaoData(_task, params) {
|
|
|
16236
16233
|
const total = allArticles.length;
|
|
16237
16234
|
const start = (pageNum - 1) * pageSize;
|
|
16238
16235
|
const pageItems = allArticles.slice(start, start + pageSize);
|
|
16239
|
-
_task.logger.info(`视频号数据获取成功,合计${total}条,第${pageNum}页返回${pageItems.length}条`);
|
|
16240
16236
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
16241
16237
|
articleCell: pageItems,
|
|
16242
16238
|
pagination: {
|
|
@@ -25595,4 +25591,4 @@ var __webpack_exports__version = package_namespaceObject.i8;
|
|
|
25595
25591
|
export { Action, ActionCommonParamsSchema, BaijiahaoPublishParamsSchema, BetaFlag, CollectionDetailSchema, ConfigDataSchema, DouyinCheckVerifyQrCodeParamsSchema, DouyinCreateCommentReplyParamsSchema, DouyinGetCollectionParamsSchema, DouyinGetCommentListParamsSchema, DouyinGetCommentReplyListParamsSchema, DouyinGetHotParamsSchema, DouyinGetLocationParamsSchema, DouyinGetMusicByCategoryParamsSchema, DouyinGetMusicCategoryParamsSchema, DouyinGetMusicParamsSchema, DouyinGetTopicsParamsSchema, DouyinGetVerifyQrCodeParamsSchema, DouyinGetWorkListParamsSchema, DouyinPublishParamsSchema, FetchArticlesDataSchema, FetchArticlesParamsSchema, Http, ProxyAgent, SearchAccountInfoParamsSchema, SessionCheckResultSchema, ShipinhaoCheckLinkValidateParamsSchema, ShipinhaoGetLocationParamsSchema, ShipinhaoGetMsgParamsSchema, ShipinhaoPublishParamsSchema, ShipinhaoSendMsgParamsSchema, ToutiaoPublishParamsSchema, UnreadCountSchema, WeixinPublishParamsSchema, WxBjhSessionParamsSchema, XhsWebSearchParamsSchema, XiaohongshuPublishParamsSchema, bjhConfigDataSchema, douyinConfigDataSchema, getFileState, reportLogger, rpaAction_Server_Mock, shipinhaoConfigDataSchema, ttConfigDataSchema, wxConfigDataSchema, xhsConfigDataSchema, __webpack_exports__version as version };
|
|
25596
25592
|
|
|
25597
25593
|
//# sourceMappingURL=index.mjs.map
|
|
25598
|
-
//# debugId=
|
|
25594
|
+
//# debugId=b88e36bc-ad59-5586-98ef-aba93fe1c33f
|