Skip to content

Instantly share code, notes, and snippets.

View arunshaji95's full-sized avatar
👋

Arun Shaji arunshaji95

👋
  • Kochi, Kerala
View GitHub Profile
@arunshaji95
arunshaji95 / main.go
Created August 23, 2023 01:43 — forked from julz/main.go
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {

Try it out!


/corgis
/this
/that
/me
/roll
/bikeshed
/ponystream
@arunshaji95
arunshaji95 / type.go
Created February 13, 2019 09:11
Dynamic typing in Golang
package main
import (
"fmt"
)
type I interface {
Test()
}
@arunshaji95
arunshaji95 / Scrapy Tutorial.py
Last active April 20, 2018 07:03
Basic scrapy tutorial
import scrapy
class BookSpider(scrapy.Spider):
name = 'bookspider'
start_urls = [
'http://books.toscrape.com/'
]
def parse(self, response):
for link in response.xpath('//article[@class="product_pod"]/div/a/@href').extract():
@arunshaji95
arunshaji95 / scrapy_post.md
Last active January 24, 2018 08:24
Scrapy post request example

Scrapy post request example

We can use python scrapy.FormRequest send post request with parameters.

import scrapy

class ExampleSpider(scrapy):
    name = 'ExampleSpider'
    allowed_domains = ['example.com']

 def start_requests(self):