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
import sys | |
import requests | |
from lxml import html | |
import time | |
if len(sys.argv) < 2: | |
print("Usage: {} URL [page jump limit]".format(sys.argv[0])) | |
exit() | |
link = sys.argv[1] |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "array.h" | |
array_t *array_new(void) { | |
array_t *array = malloc(sizeof(array_t)); | |
if (array == NULL) { | |
return NULL; | |
} |
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
//list.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "list.h" | |
static void print(int value); | |
list_t *list_insert(list_t *list, int value) { | |
list_t *node = malloc(sizeof(list_t)); | |
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
//list.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "list.h" | |
static void print(int value); | |
list_t *list_new(node_t *node) { | |
list_t *list = malloc(sizeof(list_t)); |
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
//array.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "array.h" | |
array_t *array_new(void) { | |
array_t *array = malloc(sizeof(array_t)); | |
if (!array) { |
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
//array.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "array.h" | |
array_t *array_new(void) { | |
array_t *array = malloc(sizeof(array_t)); | |
if (array == NULL) { |
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
//list.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "list.h" | |
struct list { | |
struct node *head; | |
struct node *tail; | |
unsigned int size; |