Last active
August 29, 2015 14:14
-
-
Save dorukcan/ffd0f522d087ec5dfecf to your computer and use it in GitHub Desktop.
ekşi: set title channel
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
//these codes go to developer console of https://tr.wikipedia.org/wiki/Kategori:ABD%27li_kad%C4%B1n_pop_%C5%9Fark%C4%B1c%C4%B1-s%C3%B6z_yazarlar%C4%B1 | |
var titles = []; | |
$('#mw-pages .mw-content-ltr li>a').each(function(){ | |
titles.push( $(this).attr('title').replace( new RegExp(" \\(.*?\\)","gm"), '') ); | |
}); | |
arr.join(); | |
//these codes go to any page of https://eksisozluk.com | |
var titles = "Eric Adams,Akon,Alan Arkin".split(','), | |
channel = "müzik", i; | |
for(i=0; i < titles.length; i++){ | |
$.get( "https://eksisozluk.com/?q=" + titles[i] ).success(function(data){ | |
id = $(data).find('#title').attr('data-id'); | |
$.post('https://eksisozluk.com/kanal-oner', {id: id, | |
channelName: channel, | |
suggestion: 1}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment