Skip to content

Commit 7be13e4

Browse files
committed
:neckbeard: pushed to npm
1 parent 65cef60 commit 7be13e4

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ $ node tscraper.js meakaakka
2626
likes: '343' }
2727
```
2828

29-
##TODO
30-
> Node module

package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
{
22
"name" : "twitter-scraper",
3-
"version" : "0.0.1",
4-
"description" : "Scrape user details from Twitter Accounts",
3+
"version" : "0.0.2",
4+
"description" : "Scrape user details from Twitter Accounts without using Twitter api",
55
"main" : "tscraper.js",
66
"author" : "akashnimare",
7+
"license": "MIT",
8+
"repository": "https://github.com/akashnimare/twitter-scraper",
9+
"author": {
10+
"name": "Akash Nimare",
11+
"email": "[email protected]",
12+
"url": "http://akashnimare.in"
13+
},
14+
"bin": "tscraper.js",
15+
"files": [
16+
"tscraper.js"
17+
],
18+
"keywords": [
19+
"twitter-scraper",
20+
"twitter",
21+
"Scrape",
22+
"twitter api"
23+
],
24+
"preferGlobal": "true",
725
"dependencies" : {
826
"request" : "latest",
927
"cheerio" : "latest"

tscraper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const request = require('request');
55
const tscraper = function (twitterUsername) {
66

77
const twitterUrl = 'https://twitter.com/' + twitterUsername;
8-
8+
99
request(twitterUrl, function(error, response, html) {
1010

1111
if (!error) {
@@ -22,7 +22,7 @@ const tscraper = function (twitterUsername) {
2222
following = $new.find('.ProfileNav-item--following .ProfileNav-value').first().text();
2323
followers = $new.find('.ProfileNav-item--followers .ProfileNav-value').first().text();
2424
likes = $new.find('.ProfileNav-item--favorites .ProfileNav-value').first().text();
25-
25+
2626
const userData = {
2727
name: name,
2828
username: username,

0 commit comments

Comments
 (0)