Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
>>> from flycheap import Airport, Route
>>> route = Airport('广州') - Airport('PEK') #构造航线
>>> route
flycheap.civilaviation.Route(广州, 北京首都)
>>> route.airfare #航线全价
2540
>>> route.separates() #分解为机场数据结构
(flycheap.civilaviation.Airport('CAN', 'ZGGG', '广州白云', ...), civilaviation.flycheap.Airport('PEK', 'ZBAA', '北京首都', ...))
>>> route.separates('icao') #分解为机场成员
('ZGGG', 'ZBAA')
>>> route.format('iata') #生成航线字符格式
'CAN-PEK'
>>> route = Route.fromformat('成都天府-NKG') #从字符串获得航线
>>> route.separates('airport') #分解为成员:机场名
('成都天府', '南京禄口')
from datetime import date
from flycheap import CtripCrawler
from pandas import DataFrame
from argparse import ArgumentParser
flight_date = date.today()
kwargs = {
'targets': ["BJS", "SHA", "CAN", "CTU", "DLC"],
'flight_date': flight_date,
'ignore_threshold': 3,
'ignore_routes': set(),
'days': 7}
crawler = CtripCrawler(**kwargs)
parser = ArgumentParser()
parser.add_argument("--part", type = int, default = 1)
parser.add_argument("--parts", type = int, default = 1)
parser.add_argument("--attempt", type = int, default = 3)
parser.add_argument("-reverse", action = 'store_true')
parser.add_argument("-overwrite", action = 'store_true')
parser.add_argument("-nopreskip", action = 'store_true')
parser.add_argument("--antiempty", type = int, default = 0)
parser.add_argument("--noretry", type = str, action = 'append', default = [])
title = ['出发日期', '星期', '航司', '机型', '出发', '到达', '出发时刻', '到达时刻', '价格', '折扣']
for data in crawler.run(**vars(parser.parse_args())):
print(DataFrame(data, columns = title).assign(**{'收集日期': date.today()}))
@echo off
start python D:\routine.py -nopreskip --part 3 --parts 3 --noretry SHA --attempt 2 --antiempty 2
start python D:\routine.py -nopreskip --part 2 --parts 3 --noretry SHA --attempt 2 --antiempty 2
start python D:\routine.py -nopreskip --part 1 --parts 3 --noretry SHA --attempt 2 --antiempty 2
from flycheap import Rebuilder
if __name__ == '__main__':
rebuild = Rebuilder('2022-2-17')
#rebuild.append_data('dataset.csv')
rebuild.append_folder()
rebuild.adv(1, 7)
FAQs
Flight Tickets Price Collection, Statistics and Analysis based on ctrip.com
We found that flycheap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.