Add Blog

lequack's Blog

January 5th, 2017
Anime Relations: Mushishi
Manhwa/Webtoon/LN list:

- Godly Bells
- Gyon-woo and Jik-Nyu
- The adventures of god
- Hooky
- Sansheng, Death Exists Not at the River of Oblivion (ptr)
- Winter Woods
Posted by lequack | Jan 5, 2017 7:32 PM | 0 comments
December 24th, 2015
Anime Relations: Battle Programmer Shirase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

username = "Enter username here"
password = "Enter password here"

driver = webdriver.Firefox()
driver.get("http://myanimelist.net/login.php?from=%2F")
page = driver.page_source

login = driver.find_element_by_id("loginUserName")
login.send_keys(username)
time.sleep(1)
login = driver.find_element_by_id("login-password")
login.send_keys(password)
login.send_keys(Keys.ENTER)
time.sleep(1)

message = "Enter message"
user_list = ["username_1", "username_2", ....., "username_n"]
no_of_users = len(user_list)
for j in range (0, no_of_users):
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌driver.get("http://myanimelist.net/profile/" + user_list[j])
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌page = driver.page_source
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌#replace the 1 with the number of times you wish to post do not use this to spam
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌for i in range (0,1):
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌comment = driver.find_element_by_name("commentText")
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌comment.send_keys(message)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌comment = driver.find_element_by_name("commentSubmit")
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌comment.send_keys(Keys.ENTER)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌time.sleep(25)

message = "Enter message"
title = "Enter thread title"
url = "Enter url when creating a new thread in the club"
#replace 10 with number of times you wish to create a duplicate thread
for i in range (0,10):
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌driver.get(url)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌page = driver.page_source
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌thread_title = driver.find_element_by_name('topic_title')
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌thread_title.send_keys(title + str(thread_count))
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌thread_message = driver.find_element_by_name('msg_text')
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌thread_message.send_keys(message)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌driver.find_element_by_name('submit').click()
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌time.sleep(305)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌thread_count += 1

message = "Enter message"
subject = "Enter message subject"
user_list = ["username_1", "username_2", ....., "username_n"]
for user in user_list:
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌mydriver.get("http://myanimelist.net/profile/" + user)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌mydriver.page_source
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌for i in range (0,1):
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM = mydriver.find_element_by_name("subject")
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM.send_keys(subMessage)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM = mydriver.find_element_by_name("message")
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM.send_keys(message)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM = mydriver.find_element_by_name("sendmessage")
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌send_PM.send_keys(Keys.ENTER)
‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌time.sleep(23)

$(function () {
$('#postReply').on('click', function () {
var text = $('#messageText');
text.val(text.val() + ' ‌‌‌‌ ‌‌‌‌ ‌‌‌‌‌‌‌‌ ‌‌‌‌ ‌‌‌‌ ‌‌‌‌');
});
});


@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,500);
@import url(http://fonts.googleapis.com/css?family=Alegreya+Sans+SC:500);

/*Links*/
[href] {
text-decoration: none;
color: #5C5347;
}

[href]:hover {
color: #324d65;
}

small {
color:#9f1765!important;
font-size: 10px !important;
text-transform:lowercase;
}

small .List_LightBox {
color:#ddd;
font-size: 10px !important;
}


/*Main container*/
#list_surround {
position: relative;
background-repeat: no-repeat;
background-position: 0px 125px;
background-size: 40% auto;
//background-attachment: fixed;
font-family: "Roboto", "Arial";
font-size: 16px;
}

/*Hide navigation (menu for Watching, Completed, etc.)*/
[class^=status_] {
background-color: #F5F4E9;
}

/*Hide stats*/
#grand_totals, .category_totals {
display: none;
}

/*Position list*/
#list_surround [cellpadding="0"] {
width: 820px;
position: relative;
left: 50%;
margin-left: -410px;
}

/*Categories (Watching, Completed, etc.)*/
[class^=header_] {
margin-right: 100%;
margin-top: 10px;
white-space: nowrap;
}

.header_title {
color: #a8a9ab;
font-family: "Alegreya Sans SC", "Arial";
font-size: 32px;
font-weight: 800;
padding: 10px 0 0;
}

/*Column headers*/
.table_header {
padding: 8px 8px 0px 8px;
}

.table_headerLink {
color: #5C5347;
font-size: 15px;
font-weight: 300;
}

/*Rows*/
.td1 {
background-color: #FFFFFF;
}

.td2 {
background-color: #F5F4E9;
}

.td1, .td2 {
padding: 8px;
}

.td1, .td2{
color: #5C5347;
font-size: 13px;
}

.animetitle {
color: #5C5347;
}

[id^="scor"] {
color: #5C5347;
}

/*Copyright*/
#copyright {
font-size: 12px;
font-weight: 300;
padding-top: 60px;
margin-bottom: 30px;
}
Posted by lequack | Dec 24, 2015 5:49 PM | 0 comments
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login