Skip to content

Instantly share code, notes, and snippets.

@sirin
sirin / DEMC201-selenium-simple-example.java
Created February 7, 2021 09:09
DEMC201 bootcamp Jsoup and Selenium simple example
package com.company;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@sirin
sirin / DEMC201-bs4-simple-example.py
Created February 7, 2021 09:03
DEMC201 bootcamp BeautifulSoup simple example
import requests
from bs4 import BeautifulSoup
import logging
BASE_PATH = "https://www.vatanbilgisayar.com"
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(funcName)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.INFO)
def get_page_source(link):
@sirin
sirin / turkish_pos_tagger.py
Last active May 1, 2022 03:29
This file contains Turkish POS tagger which is created by using Brill tagger.
# -*- coding: utf-8 -*-
'''
Turkish POS Tagger
Author: Sirin Saygili <sirin.neslihan@gmail.com>
Turkish POS Tagger is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Turkish POS Tagger is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of