Skip to content

Commit

Permalink
Fix Posting reply_to XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
kennym committed May 14, 2013
1 parent d29c600 commit ec7bdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/posting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CraigScrape::Posting < CraigScrape::Scraper
].join('|')
XPATH_REPLY_TO = ["//*[@class='dateReplyBar']/small/a",
# For some posts (the newest ones on 01/20/12) we find the reply to this way:
"//*[@class='dateReplyBar']/*[@id='replytext']/following-sibling::a"
"//*[@class='dateReplyBar']/*[@class='replytext']/following-sibling::a"
].join('|')
XPATH_POSTINGBLOCK = "//*[@class='postingidtext' or @class='postinginfos']"
XPATH_POSTED_DATE = "//*[@class='postinginfos']/*[@class='postinginfo']/date"
Expand Down

0 comments on commit ec7bdc5

Please sign in to comment.