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
# | |
# twitter csv process | |
# write by @jiyang_viz | |
# | |
# require: | |
# https://github.com/edburnett/twitter-text-python | |
# | |
# download csv file from: | |
# https://github.com/bpb27/political_twitter_archive/tree/master/realdonaldtrump |
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
<!DOCTYPE html> | |
<html xmlns:wb=“http://open.weibo.com/wb> | |
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>微博信息汇总</title> | |
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript"> |
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
<a id="codeOut" href='javascript:(function(){$("a").each(function(){var self=$(this);var href=self.attr("href");if(href.indexOf("class.hujiang.com")!=-1){var color="red";if(href.indexOf("/course")!=-1){color="blue";}self.css("border-color",color);self.css("border-width","3px");self.css("border-style","solid");}});})();'>to class smart </a> |
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
$("a").each(function() { | |
var href = $(this).attr("href") | |
if (href.indexOf("class.hujiang.com") != -1) { | |
console.log(href); | |
$(this).css("border-width", "2px"); | |
$(this).css("border-color", "red"); | |
$(this).css("border-style", "solid"); | |
} | |
}); |