forked from LindseyB/XOmBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After the twitter gem and API have proven to be flawed and unreliable I've decided to remove gut it. I've resorted to screenscraping for tweets. I'm not proud of it, It works, however, and I am losing zero functionality. Though, responce times will be slower since instead of fetching a tiny JSON object the entire web page is being fetched and then parsed with nokogiri. I'm doing some magic with XPATH since, unfortunately, nokogiri did not like me having two nots in my css selectors. Note the relevant ticket: sparklemotion/nokogiri#451
- Loading branch information
Showing
3 changed files
with
12 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source :rubygems | ||
gem "cinch", "~> 1.1.3" | ||
gem "mechanize" | ||
gem "twitter" | ||
gem "nokogiri" | ||
gem "htmlentities" | ||
gem "json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters