@the-convocation/twitter-scraper 0.0.8 → 0.1.0
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/api.js +76 -76
- package/dist/auth.js +118 -118
- package/dist/profile.js +102 -102
- package/dist/scraper.js +152 -152
- package/dist/search.js +83 -83
- package/dist/timeline-async.js +58 -58
- package/dist/timeline.js +227 -227
- package/dist/trends.js +45 -45
- package/dist/tweets.js +58 -58
- package/dist/types/api.d.ts +15 -15
- package/dist/types/auth.d.ts +54 -54
- package/dist/types/profile.d.ts +66 -66
- package/dist/types/scraper.d.ts +101 -101
- package/dist/types/search.d.ts +18 -18
- package/dist/types/timeline-async.d.ts +14 -14
- package/dist/types/timeline.d.ts +153 -153
- package/dist/types/trends.d.ts +2 -2
- package/dist/types/tweets.d.ts +51 -51
- package/package.json +1 -1
- package/.commitlintrc +0 -5
- package/.eslintcache +0 -1
- package/.eslintrc.js +0 -24
- package/.gitattributes +0 -78
- package/.prettierignore +0 -2
- package/.prettierrc +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Profile } from './profile';
|
|
2
|
-
import { Tweet } from './tweets';
|
|
3
|
-
export interface FetchProfilesResponse {
|
|
4
|
-
profiles: Profile[];
|
|
5
|
-
next?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type FetchProfiles = (query: string, maxProfiles: number, cursor: string | undefined) => Promise<FetchProfilesResponse>;
|
|
8
|
-
export interface FetchTweetsResponse {
|
|
9
|
-
tweets: Tweet[];
|
|
10
|
-
next?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type FetchTweets = (query: string, maxTweets: number, cursor: string | undefined) => Promise<FetchTweetsResponse>;
|
|
13
|
-
export declare function getUserTimeline(query: string, maxProfiles: number, fetchFunc: FetchProfiles): AsyncGenerator<Profile>;
|
|
14
|
-
export declare function getTweetTimeline(query: string, maxTweets: number, fetchFunc: FetchTweets): AsyncGenerator<Tweet>;
|
|
1
|
+
import { Profile } from './profile';
|
|
2
|
+
import { Tweet } from './tweets';
|
|
3
|
+
export interface FetchProfilesResponse {
|
|
4
|
+
profiles: Profile[];
|
|
5
|
+
next?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type FetchProfiles = (query: string, maxProfiles: number, cursor: string | undefined) => Promise<FetchProfilesResponse>;
|
|
8
|
+
export interface FetchTweetsResponse {
|
|
9
|
+
tweets: Tweet[];
|
|
10
|
+
next?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type FetchTweets = (query: string, maxTweets: number, cursor: string | undefined) => Promise<FetchTweetsResponse>;
|
|
13
|
+
export declare function getUserTimeline(query: string, maxProfiles: number, fetchFunc: FetchProfiles): AsyncGenerator<Profile>;
|
|
14
|
+
export declare function getTweetTimeline(query: string, maxTweets: number, fetchFunc: FetchTweets): AsyncGenerator<Tweet>;
|
|
15
15
|
//# sourceMappingURL=timeline-async.d.ts.map
|
package/dist/types/timeline.d.ts
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
import { LegacyUserRaw, Profile } from './profile';
|
|
2
|
-
import { PlaceRaw, Tweet } from './tweets';
|
|
3
|
-
export interface Hashtag {
|
|
4
|
-
text?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TimelineMediaBasicRaw {
|
|
7
|
-
media_url_https?: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
url?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TimelineUrlBasicRaw {
|
|
12
|
-
expanded_url?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ExtSensitiveMediaWarningRaw {
|
|
16
|
-
adult_content?: boolean;
|
|
17
|
-
graphic_violence?: boolean;
|
|
18
|
-
other?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface VideoVariant {
|
|
21
|
-
bitrate?: number;
|
|
22
|
-
url?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface VideoInfo {
|
|
25
|
-
variants?: VideoVariant[];
|
|
26
|
-
}
|
|
27
|
-
export interface TimelineMediaExtendedRaw {
|
|
28
|
-
id_str?: string;
|
|
29
|
-
media_url_https?: string;
|
|
30
|
-
ext_sensitive_media_warning?: ExtSensitiveMediaWarningRaw;
|
|
31
|
-
type?: string;
|
|
32
|
-
url?: string;
|
|
33
|
-
video_info?: VideoInfo;
|
|
34
|
-
}
|
|
35
|
-
export interface TimelineTweetRaw {
|
|
36
|
-
conversation_id_str?: string;
|
|
37
|
-
created_at?: string;
|
|
38
|
-
favorite_count?: number;
|
|
39
|
-
full_text?: string;
|
|
40
|
-
entities?: {
|
|
41
|
-
hashtags?: Hashtag[];
|
|
42
|
-
media?: TimelineMediaBasicRaw[];
|
|
43
|
-
urls?: TimelineUrlBasicRaw[];
|
|
44
|
-
};
|
|
45
|
-
extended_entities?: {
|
|
46
|
-
media?: TimelineMediaExtendedRaw[];
|
|
47
|
-
};
|
|
48
|
-
in_reply_to_status_id_str?: string;
|
|
49
|
-
place?: PlaceRaw;
|
|
50
|
-
reply_count?: number;
|
|
51
|
-
retweet_count?: number;
|
|
52
|
-
retweeted_status_id_str?: string;
|
|
53
|
-
quoted_status_id_str?: string;
|
|
54
|
-
time?: string;
|
|
55
|
-
user_id_str?: string;
|
|
56
|
-
}
|
|
57
|
-
export interface TimelineGlobalObjectsRaw {
|
|
58
|
-
tweets?: {
|
|
59
|
-
[key: string]: TimelineTweetRaw | undefined;
|
|
60
|
-
};
|
|
61
|
-
users?: {
|
|
62
|
-
[key: string]: LegacyUserRaw | undefined;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export interface TimelineDataRawCursor {
|
|
66
|
-
value?: string;
|
|
67
|
-
cursorType?: string;
|
|
68
|
-
}
|
|
69
|
-
export interface TimelineDataRawEntity {
|
|
70
|
-
id?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface TimelineDataRawModuleItem {
|
|
73
|
-
clientEventInfo?: {
|
|
74
|
-
details?: {
|
|
75
|
-
guideDetails?: {
|
|
76
|
-
transparentGuideDetails?: {
|
|
77
|
-
trendMetadata?: {
|
|
78
|
-
trendName?: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export interface TimelineDataRawAddEntry {
|
|
86
|
-
content?: {
|
|
87
|
-
item?: {
|
|
88
|
-
content?: {
|
|
89
|
-
tweet?: TimelineDataRawEntity;
|
|
90
|
-
user?: TimelineDataRawEntity;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
operation?: {
|
|
94
|
-
cursor?: TimelineDataRawCursor;
|
|
95
|
-
};
|
|
96
|
-
timelineModule?: {
|
|
97
|
-
items?: {
|
|
98
|
-
item?: TimelineDataRawModuleItem;
|
|
99
|
-
}[];
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface TimelineDataRawPinEntry {
|
|
104
|
-
content?: {
|
|
105
|
-
item?: {
|
|
106
|
-
content?: {
|
|
107
|
-
tweet?: TimelineDataRawEntity;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
export interface TimelineDataRawReplaceEntry {
|
|
113
|
-
content?: {
|
|
114
|
-
operation?: {
|
|
115
|
-
cursor?: TimelineDataRawCursor;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export interface TimelineDataRawInstruction {
|
|
120
|
-
addEntries?: {
|
|
121
|
-
entries?: TimelineDataRawAddEntry[];
|
|
122
|
-
};
|
|
123
|
-
pinEntry?: {
|
|
124
|
-
entry?: TimelineDataRawPinEntry;
|
|
125
|
-
};
|
|
126
|
-
replaceEntry?: {
|
|
127
|
-
entry?: TimelineDataRawReplaceEntry;
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
export interface TimelineDataRaw {
|
|
131
|
-
instructions?: TimelineDataRawInstruction[];
|
|
132
|
-
}
|
|
133
|
-
export interface TimelineRaw {
|
|
134
|
-
globalObjects?: TimelineGlobalObjectsRaw;
|
|
135
|
-
timeline?: TimelineDataRaw;
|
|
136
|
-
}
|
|
137
|
-
export declare function parseTweet(timeline: TimelineRaw, id: string): Tweet | null;
|
|
138
|
-
/**
|
|
139
|
-
* A paginated tweets API response. The `next` field can be used to fetch the next page of results.
|
|
140
|
-
*/
|
|
141
|
-
export interface QueryTweetsResponse {
|
|
142
|
-
tweets: Tweet[];
|
|
143
|
-
next?: string;
|
|
144
|
-
}
|
|
145
|
-
export declare function parseTweets(timeline: TimelineRaw): QueryTweetsResponse;
|
|
146
|
-
/**
|
|
147
|
-
* A paginated profiles API response. The `next` field can be used to fetch the next page of results.
|
|
148
|
-
*/
|
|
149
|
-
export interface QueryProfilesResponse {
|
|
150
|
-
profiles: Profile[];
|
|
151
|
-
next?: string;
|
|
152
|
-
}
|
|
153
|
-
export declare function parseUsers(timeline: TimelineRaw): QueryProfilesResponse;
|
|
1
|
+
import { LegacyUserRaw, Profile } from './profile';
|
|
2
|
+
import { PlaceRaw, Tweet } from './tweets';
|
|
3
|
+
export interface Hashtag {
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TimelineMediaBasicRaw {
|
|
7
|
+
media_url_https?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TimelineUrlBasicRaw {
|
|
12
|
+
expanded_url?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ExtSensitiveMediaWarningRaw {
|
|
16
|
+
adult_content?: boolean;
|
|
17
|
+
graphic_violence?: boolean;
|
|
18
|
+
other?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface VideoVariant {
|
|
21
|
+
bitrate?: number;
|
|
22
|
+
url?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface VideoInfo {
|
|
25
|
+
variants?: VideoVariant[];
|
|
26
|
+
}
|
|
27
|
+
export interface TimelineMediaExtendedRaw {
|
|
28
|
+
id_str?: string;
|
|
29
|
+
media_url_https?: string;
|
|
30
|
+
ext_sensitive_media_warning?: ExtSensitiveMediaWarningRaw;
|
|
31
|
+
type?: string;
|
|
32
|
+
url?: string;
|
|
33
|
+
video_info?: VideoInfo;
|
|
34
|
+
}
|
|
35
|
+
export interface TimelineTweetRaw {
|
|
36
|
+
conversation_id_str?: string;
|
|
37
|
+
created_at?: string;
|
|
38
|
+
favorite_count?: number;
|
|
39
|
+
full_text?: string;
|
|
40
|
+
entities?: {
|
|
41
|
+
hashtags?: Hashtag[];
|
|
42
|
+
media?: TimelineMediaBasicRaw[];
|
|
43
|
+
urls?: TimelineUrlBasicRaw[];
|
|
44
|
+
};
|
|
45
|
+
extended_entities?: {
|
|
46
|
+
media?: TimelineMediaExtendedRaw[];
|
|
47
|
+
};
|
|
48
|
+
in_reply_to_status_id_str?: string;
|
|
49
|
+
place?: PlaceRaw;
|
|
50
|
+
reply_count?: number;
|
|
51
|
+
retweet_count?: number;
|
|
52
|
+
retweeted_status_id_str?: string;
|
|
53
|
+
quoted_status_id_str?: string;
|
|
54
|
+
time?: string;
|
|
55
|
+
user_id_str?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface TimelineGlobalObjectsRaw {
|
|
58
|
+
tweets?: {
|
|
59
|
+
[key: string]: TimelineTweetRaw | undefined;
|
|
60
|
+
};
|
|
61
|
+
users?: {
|
|
62
|
+
[key: string]: LegacyUserRaw | undefined;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface TimelineDataRawCursor {
|
|
66
|
+
value?: string;
|
|
67
|
+
cursorType?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface TimelineDataRawEntity {
|
|
70
|
+
id?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface TimelineDataRawModuleItem {
|
|
73
|
+
clientEventInfo?: {
|
|
74
|
+
details?: {
|
|
75
|
+
guideDetails?: {
|
|
76
|
+
transparentGuideDetails?: {
|
|
77
|
+
trendMetadata?: {
|
|
78
|
+
trendName?: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export interface TimelineDataRawAddEntry {
|
|
86
|
+
content?: {
|
|
87
|
+
item?: {
|
|
88
|
+
content?: {
|
|
89
|
+
tweet?: TimelineDataRawEntity;
|
|
90
|
+
user?: TimelineDataRawEntity;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
operation?: {
|
|
94
|
+
cursor?: TimelineDataRawCursor;
|
|
95
|
+
};
|
|
96
|
+
timelineModule?: {
|
|
97
|
+
items?: {
|
|
98
|
+
item?: TimelineDataRawModuleItem;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export interface TimelineDataRawPinEntry {
|
|
104
|
+
content?: {
|
|
105
|
+
item?: {
|
|
106
|
+
content?: {
|
|
107
|
+
tweet?: TimelineDataRawEntity;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export interface TimelineDataRawReplaceEntry {
|
|
113
|
+
content?: {
|
|
114
|
+
operation?: {
|
|
115
|
+
cursor?: TimelineDataRawCursor;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface TimelineDataRawInstruction {
|
|
120
|
+
addEntries?: {
|
|
121
|
+
entries?: TimelineDataRawAddEntry[];
|
|
122
|
+
};
|
|
123
|
+
pinEntry?: {
|
|
124
|
+
entry?: TimelineDataRawPinEntry;
|
|
125
|
+
};
|
|
126
|
+
replaceEntry?: {
|
|
127
|
+
entry?: TimelineDataRawReplaceEntry;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface TimelineDataRaw {
|
|
131
|
+
instructions?: TimelineDataRawInstruction[];
|
|
132
|
+
}
|
|
133
|
+
export interface TimelineRaw {
|
|
134
|
+
globalObjects?: TimelineGlobalObjectsRaw;
|
|
135
|
+
timeline?: TimelineDataRaw;
|
|
136
|
+
}
|
|
137
|
+
export declare function parseTweet(timeline: TimelineRaw, id: string): Tweet | null;
|
|
138
|
+
/**
|
|
139
|
+
* A paginated tweets API response. The `next` field can be used to fetch the next page of results.
|
|
140
|
+
*/
|
|
141
|
+
export interface QueryTweetsResponse {
|
|
142
|
+
tweets: Tweet[];
|
|
143
|
+
next?: string;
|
|
144
|
+
}
|
|
145
|
+
export declare function parseTweets(timeline: TimelineRaw): QueryTweetsResponse;
|
|
146
|
+
/**
|
|
147
|
+
* A paginated profiles API response. The `next` field can be used to fetch the next page of results.
|
|
148
|
+
*/
|
|
149
|
+
export interface QueryProfilesResponse {
|
|
150
|
+
profiles: Profile[];
|
|
151
|
+
next?: string;
|
|
152
|
+
}
|
|
153
|
+
export declare function parseUsers(timeline: TimelineRaw): QueryProfilesResponse;
|
|
154
154
|
//# sourceMappingURL=timeline.d.ts.map
|
package/dist/types/trends.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TwitterGuestAuth } from './auth';
|
|
2
|
-
export declare function getTrends(auth: TwitterGuestAuth): Promise<string[]>;
|
|
1
|
+
import { TwitterGuestAuth } from './auth';
|
|
2
|
+
export declare function getTrends(auth: TwitterGuestAuth): Promise<string[]>;
|
|
3
3
|
//# sourceMappingURL=trends.d.ts.map
|
package/dist/types/tweets.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { TwitterGuestAuth } from './auth';
|
|
2
|
-
import { QueryTweetsResponse } from './timeline';
|
|
3
|
-
export interface Video {
|
|
4
|
-
id: string;
|
|
5
|
-
preview: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface PlaceRaw {
|
|
9
|
-
id?: string;
|
|
10
|
-
place_type?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
full_name?: string;
|
|
13
|
-
country_code?: string;
|
|
14
|
-
country?: string;
|
|
15
|
-
bounding_box?: {
|
|
16
|
-
type?: string;
|
|
17
|
-
coordinates?: number[][][];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* A parsed Tweet object.
|
|
22
|
-
*/
|
|
23
|
-
export interface Tweet {
|
|
24
|
-
hashtags: string[];
|
|
25
|
-
html?: string;
|
|
26
|
-
id?: string;
|
|
27
|
-
inReplyToStatus?: Tweet;
|
|
28
|
-
isQuoted?: boolean;
|
|
29
|
-
isPin?: boolean;
|
|
30
|
-
isReply?: boolean;
|
|
31
|
-
isRetweet?: boolean;
|
|
32
|
-
likes?: number;
|
|
33
|
-
permanentUrl?: string;
|
|
34
|
-
photos: string[];
|
|
35
|
-
place?: PlaceRaw;
|
|
36
|
-
quotedStatus?: Tweet;
|
|
37
|
-
replies?: number;
|
|
38
|
-
retweets?: number;
|
|
39
|
-
retweetedStatus?: Tweet;
|
|
40
|
-
text?: string;
|
|
41
|
-
timeParsed?: Date;
|
|
42
|
-
timestamp?: number;
|
|
43
|
-
urls: string[];
|
|
44
|
-
userId?: string;
|
|
45
|
-
username?: string;
|
|
46
|
-
videos: Video[];
|
|
47
|
-
sensitiveContent?: boolean;
|
|
48
|
-
}
|
|
49
|
-
export declare function fetchTweets(user: string, maxTweets: number, includeReplies: boolean, cursor: string | undefined, auth: TwitterGuestAuth): Promise<QueryTweetsResponse>;
|
|
50
|
-
export declare function getTweets(user: string, maxTweets: number, includeReplies: boolean, auth: TwitterGuestAuth): AsyncGenerator<Tweet>;
|
|
51
|
-
export declare function getTweet(id: string, includeReplies: boolean, auth: TwitterGuestAuth): Promise<Tweet | null>;
|
|
1
|
+
import { TwitterGuestAuth } from './auth';
|
|
2
|
+
import { QueryTweetsResponse } from './timeline';
|
|
3
|
+
export interface Video {
|
|
4
|
+
id: string;
|
|
5
|
+
preview: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PlaceRaw {
|
|
9
|
+
id?: string;
|
|
10
|
+
place_type?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
full_name?: string;
|
|
13
|
+
country_code?: string;
|
|
14
|
+
country?: string;
|
|
15
|
+
bounding_box?: {
|
|
16
|
+
type?: string;
|
|
17
|
+
coordinates?: number[][][];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A parsed Tweet object.
|
|
22
|
+
*/
|
|
23
|
+
export interface Tweet {
|
|
24
|
+
hashtags: string[];
|
|
25
|
+
html?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
inReplyToStatus?: Tweet;
|
|
28
|
+
isQuoted?: boolean;
|
|
29
|
+
isPin?: boolean;
|
|
30
|
+
isReply?: boolean;
|
|
31
|
+
isRetweet?: boolean;
|
|
32
|
+
likes?: number;
|
|
33
|
+
permanentUrl?: string;
|
|
34
|
+
photos: string[];
|
|
35
|
+
place?: PlaceRaw;
|
|
36
|
+
quotedStatus?: Tweet;
|
|
37
|
+
replies?: number;
|
|
38
|
+
retweets?: number;
|
|
39
|
+
retweetedStatus?: Tweet;
|
|
40
|
+
text?: string;
|
|
41
|
+
timeParsed?: Date;
|
|
42
|
+
timestamp?: number;
|
|
43
|
+
urls: string[];
|
|
44
|
+
userId?: string;
|
|
45
|
+
username?: string;
|
|
46
|
+
videos: Video[];
|
|
47
|
+
sensitiveContent?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare function fetchTweets(user: string, maxTweets: number, includeReplies: boolean, cursor: string | undefined, auth: TwitterGuestAuth): Promise<QueryTweetsResponse>;
|
|
50
|
+
export declare function getTweets(user: string, maxTweets: number, includeReplies: boolean, auth: TwitterGuestAuth): AsyncGenerator<Tweet>;
|
|
51
|
+
export declare function getTweet(id: string, includeReplies: boolean, auth: TwitterGuestAuth): Promise<Tweet | null>;
|
|
52
52
|
//# sourceMappingURL=tweets.d.ts.map
|
package/package.json
CHANGED
package/.commitlintrc
DELETED
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\gh-pages.js":"1","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\api.ts":"2","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\auth.ts":"3","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\profile.ts":"4","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\scraper.ts":"5","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\search.ts":"6","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\timeline.ts":"7","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\trends.ts":"8","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\tweets.ts":"9","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\search.test.ts":"10","D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\trends.test.ts":"11"},{"size":214,"mtime":1653244686068,"results":"12","hashOfConfig":"13"},{"size":2684,"mtime":1653242281934,"results":"14","hashOfConfig":"13"},{"size":3541,"mtime":1653242491067,"results":"15","hashOfConfig":"13"},{"size":4052,"mtime":1653242369416,"results":"16","hashOfConfig":"13"},{"size":6508,"mtime":1653242879269,"results":"17","hashOfConfig":"13"},{"size":2948,"mtime":1653242319801,"results":"18","hashOfConfig":"13"},{"size":10820,"mtime":1653242429993,"results":"19","hashOfConfig":"13"},{"size":1490,"mtime":1653241871443,"results":"20","hashOfConfig":"13"},{"size":2819,"mtime":1653242343249,"results":"21","hashOfConfig":"13"},{"size":1802,"mtime":1653243993888,"results":"22","hashOfConfig":"13"},{"size":259,"mtime":1653244015428,"results":"23","hashOfConfig":"13"},{"filePath":"24","messages":"25","suppressedMessages":"26","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"iisw30",{"filePath":"27","messages":"28","suppressedMessages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","suppressedMessages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","suppressedMessages":"35","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","suppressedMessages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","suppressedMessages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","suppressedMessages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","suppressedMessages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","suppressedMessages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","suppressedMessages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","suppressedMessages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\gh-pages.js",["57"],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\api.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\auth.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\profile.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\scraper.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\search.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\timeline.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\trends.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\tweets.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\search.test.ts",[],[],"D:\\Users\\luca\\Documents\\GitHub\\twitter-scraper\\src\\trends.test.ts",[],[],{"ruleId":"58","severity":2,"message":"59","line":1,"column":17,"nodeType":"60","messageId":"61","endLine":1,"endColumn":36},"@typescript-eslint/no-var-requires","Require statement not part of import statement.","CallExpression","noVarReqs"]
|
package/.eslintrc.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
tsconfigRootDir: __dirname,
|
|
5
|
-
sourceType: 'module',
|
|
6
|
-
},
|
|
7
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
8
|
-
extends: [
|
|
9
|
-
'plugin:@typescript-eslint/recommended',
|
|
10
|
-
'plugin:prettier/recommended',
|
|
11
|
-
],
|
|
12
|
-
root: true,
|
|
13
|
-
env: {
|
|
14
|
-
node: true,
|
|
15
|
-
jest: true,
|
|
16
|
-
},
|
|
17
|
-
ignorePatterns: ['**/*.js'],
|
|
18
|
-
rules: {
|
|
19
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
22
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
23
|
-
},
|
|
24
|
-
};
|
package/.gitattributes
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# The above will handle all files NOT found below
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
# Code
|
|
9
|
-
*.js text eol=lf
|
|
10
|
-
*.ts text eol=lf
|
|
11
|
-
|
|
12
|
-
# Documents
|
|
13
|
-
*.bibtex text diff=bibtex
|
|
14
|
-
*.doc diff=astextplain
|
|
15
|
-
*.DOC diff=astextplain
|
|
16
|
-
*.docx diff=astextplain
|
|
17
|
-
*.DOCX diff=astextplain
|
|
18
|
-
*.dot diff=astextplain
|
|
19
|
-
*.DOT diff=astextplain
|
|
20
|
-
*.pdf diff=astextplain
|
|
21
|
-
*.PDF diff=astextplain
|
|
22
|
-
*.rtf diff=astextplain
|
|
23
|
-
*.RTF diff=astextplain
|
|
24
|
-
*.md text diff=markdown
|
|
25
|
-
*.mdx text diff=markdown
|
|
26
|
-
*.tex text diff=tex
|
|
27
|
-
*.adoc text
|
|
28
|
-
*.textile text
|
|
29
|
-
*.mustache text
|
|
30
|
-
*.csv text
|
|
31
|
-
*.tab text
|
|
32
|
-
*.tsv text
|
|
33
|
-
*.txt text
|
|
34
|
-
*.sql text
|
|
35
|
-
|
|
36
|
-
# Graphics
|
|
37
|
-
*.png binary
|
|
38
|
-
*.jpg binary
|
|
39
|
-
*.jpeg binary
|
|
40
|
-
*.gif binary
|
|
41
|
-
*.tif binary
|
|
42
|
-
*.tiff binary
|
|
43
|
-
*.ico binary
|
|
44
|
-
*.svg text
|
|
45
|
-
*.eps binary
|
|
46
|
-
|
|
47
|
-
# Scripts
|
|
48
|
-
*.bash text eol=lf
|
|
49
|
-
*.fish text eol=lf
|
|
50
|
-
*.sh text eol=lf
|
|
51
|
-
*.zsh text eol=lf
|
|
52
|
-
*.bat text eol=crlf
|
|
53
|
-
*.cmd text eol=crlf
|
|
54
|
-
*.ps1 text eol=crlf
|
|
55
|
-
|
|
56
|
-
# Serialisation
|
|
57
|
-
*.json text
|
|
58
|
-
*.toml text
|
|
59
|
-
*.xml text
|
|
60
|
-
*.yaml text
|
|
61
|
-
*.yml text
|
|
62
|
-
|
|
63
|
-
# Archives
|
|
64
|
-
*.7z binary
|
|
65
|
-
*.gz binary
|
|
66
|
-
*.tar binary
|
|
67
|
-
*.tgz binary
|
|
68
|
-
*.zip binary
|
|
69
|
-
|
|
70
|
-
# Text files where line endings should be preserved
|
|
71
|
-
*.patch -text
|
|
72
|
-
|
|
73
|
-
#
|
|
74
|
-
# Exclude files from exporting
|
|
75
|
-
#
|
|
76
|
-
|
|
77
|
-
.gitattributes export-ignore
|
|
78
|
-
.gitignore export-ignore
|
package/.prettierignore
DELETED