├── utils ├── __init__.py ├── util.py ├── train.py └── pyDes.py ├── crawler_hdu ├── __init__.py ├── login.py └── service.py ├── pics ├── all │ ├── 0.png │ ├── 1.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 14.png │ ├── 15.png │ ├── 16.png │ ├── 17.png │ ├── 18.png │ ├── 19.png │ ├── 2.png │ ├── 20.png │ ├── 21.png │ ├── 22.png │ ├── 23.png │ ├── 24.png │ ├── 25.png │ ├── 26.png │ ├── 27.png │ ├── 28.png │ ├── 29.png │ ├── 3.png │ ├── 30.png │ ├── 31.png │ ├── 32.png │ ├── 33.png │ ├── 34.png │ ├── 35.png │ ├── 36.png │ ├── 37.png │ ├── 38.png │ ├── 39.png │ ├── 4.png │ ├── 40.png │ ├── 41.png │ ├── 42.png │ ├── 43.png │ ├── 44.png │ ├── 45.png │ ├── 46.png │ ├── 47.png │ ├── 48.png │ ├── 49.png │ ├── 5.png │ ├── 50.png │ ├── 51.png │ ├── 52.png │ ├── 53.png │ ├── 54.png │ ├── 55.png │ ├── 56.png │ ├── 57.png │ ├── 58.png │ ├── 59.png │ ├── 6.png │ ├── 60.png │ ├── 61.png │ ├── 62.png │ ├── 63.png │ ├── 64.png │ ├── 65.png │ ├── 66.png │ ├── 67.png │ ├── 68.png │ ├── 69.png │ ├── 7.png │ ├── 70.png │ ├── 71.png │ ├── 72.png │ ├── 73.png │ ├── 74.png │ ├── 75.png │ ├── 76.png │ ├── 77.png │ ├── 78.png │ ├── 79.png │ ├── 8.png │ ├── 80.png │ ├── 81.png │ ├── 82.png │ ├── 83.png │ ├── 84.png │ ├── 85.png │ ├── 86.png │ ├── 87.png │ ├── 88.png │ ├── 89.png │ ├── 9.png │ ├── 90.png │ ├── 91.png │ ├── 92.png │ ├── 93.png │ ├── 94.png │ ├── 95.png │ ├── 96.png │ ├── 97.png │ ├── 98.png │ └── 99.png ├── test │ ├── 0 │ │ ├── 0-17.png │ │ ├── 0-2.png │ │ ├── 0-22.png │ │ ├── 0-25.png │ │ ├── 0-38.png │ │ ├── 0-45.png │ │ ├── 0-48.png │ │ ├── 0-63.png │ │ ├── 0-65.png │ │ ├── 0-68.png │ │ ├── 0-75.png │ │ ├── 0-78.png │ │ ├── 0-82.png │ │ ├── 0-90.png │ │ ├── 0-92.png │ │ ├── 0-93.png │ │ └── 0-97.png │ ├── 1 │ │ ├── 1-10.png │ │ ├── 1-14.png │ │ ├── 1-29.png │ │ ├── 1-37.png │ │ ├── 1-47.png │ │ ├── 1-5.png │ │ ├── 1-62.png │ │ ├── 1-67.png │ │ ├── 1-77.png │ │ ├── 1-85.png │ │ ├── 1-89.png │ │ └── 1-9.png │ ├── 2 │ │ ├── 2-32.png │ │ ├── 2-39.png │ │ ├── 2-41.png │ │ ├── 2-64.png │ │ └── 2-72.png │ ├── 3 │ │ ├── 3-28.png │ │ ├── 3-3.png │ │ ├── 3-43.png │ │ ├── 3-53.png │ │ ├── 3-58.png │ │ └── 3-83.png │ ├── 4 │ │ ├── 4-40.png │ │ ├── 4-50.png │ │ ├── 4-52.png │ │ ├── 4-55.png │ │ ├── 4-57.png │ │ ├── 4-91.png │ │ └── 4-100.png │ ├── 5 │ │ ├── 5-1.png │ │ ├── 5-13.png │ │ ├── 5-16.png │ │ ├── 5-18.png │ │ ├── 5-21.png │ │ ├── 5-23.png │ │ ├── 5-26.png │ │ ├── 5-33.png │ │ ├── 5-34.png │ │ ├── 5-4.png │ │ ├── 5-42.png │ │ ├── 5-73.png │ │ ├── 5-74.png │ │ ├── 5-8.png │ │ ├── 5-81.png │ │ ├── 5-84.png │ │ ├── 5-88.png │ │ ├── 5-96.png │ │ └── 5-98.png │ ├── 6 │ │ ├── 6-35.png │ │ ├── 6-36.png │ │ ├── 6-51.png │ │ ├── 6-56.png │ │ ├── 6-60.png │ │ └── 6-61.png │ ├── 7 │ │ ├── 7-0.png │ │ ├── 7-30.png │ │ ├── 7-46.png │ │ ├── 7-49.png │ │ ├── 7-54.png │ │ ├── 7-59.png │ │ ├── 7-66.png │ │ ├── 7-69.png │ │ ├── 7-70.png │ │ ├── 7-76.png │ │ ├── 7-79.png │ │ └── 7-80.png │ └── 8 │ │ ├── 8-11.png │ │ ├── 8-12.png │ │ ├── 8-15.png │ │ ├── 8-19.png │ │ ├── 8-20.png │ │ ├── 8-24.png │ │ ├── 8-27.png │ │ ├── 8-31.png │ │ ├── 8-44.png │ │ ├── 8-6.png │ │ ├── 8-7.png │ │ ├── 8-71.png │ │ ├── 8-86.png │ │ ├── 8-87.png │ │ ├── 8-94.png │ │ ├── 8-95.png │ │ └── 8-99.png └── train │ ├── 0 │ ├── 0-3.png │ ├── 0-5.png │ ├── 0-107.png │ ├── 0-137.png │ ├── 0-143.png │ ├── 0-152.png │ ├── 0-158.png │ ├── 0-160.png │ ├── 0-165.png │ ├── 0-168.png │ ├── 0-182.png │ ├── 0-187.png │ ├── 0-190.png │ ├── 0-192.png │ ├── 0-193.png │ ├── 0-30.png │ ├── 0-38.png │ ├── 0-40.png │ ├── 0-63.png │ ├── 0-68.png │ ├── 0-73.png │ └── 0-95.png │ ├── 1 │ ├── 1-2.png │ ├── 1-9.png │ ├── 1-120.png │ ├── 1-124.png │ ├── 1-130.png │ ├── 1-142.png │ ├── 1-145.png │ ├── 1-157.png │ ├── 1-164.png │ ├── 1-167.png │ ├── 1-34.png │ ├── 1-37.png │ ├── 1-44.png │ ├── 1-62.png │ ├── 1-67.png │ ├── 1-72.png │ ├── 1-80.png │ └── 1-99.png │ ├── 2 │ ├── 2-4.png │ ├── 2-101.png │ ├── 2-11.png │ ├── 2-112.png │ ├── 2-118.png │ ├── 2-119.png │ ├── 2-126.png │ ├── 2-144.png │ ├── 2-159.png │ ├── 2-177.png │ ├── 2-18.png │ ├── 2-19.png │ ├── 2-196.png │ ├── 2-22.png │ ├── 2-39.png │ ├── 2-47.png │ ├── 2-51.png │ ├── 2-57.png │ ├── 2-64.png │ ├── 2-69.png │ ├── 2-74.png │ └── 2-76.png │ ├── 3 │ ├── 3-8.png │ ├── 3-103.png │ ├── 3-108.png │ ├── 3-128.png │ ├── 3-13.png │ ├── 3-134.png │ ├── 3-138.png │ ├── 3-149.png │ ├── 3-163.png │ ├── 3-173.png │ ├── 3-188.png │ ├── 3-198.png │ ├── 3-28.png │ ├── 3-33.png │ ├── 3-43.png │ ├── 3-53.png │ ├── 3-78.png │ ├── 3-84.png │ ├── 3-88.png │ ├── 3-93.png │ └── 3-98.png │ ├── 4 │ ├── 4-10.png │ ├── 4-100.png │ ├── 4-116.png │ ├── 4-125.png │ ├── 4-16.png │ ├── 4-170.png │ ├── 4-172.png │ ├── 4-191.png │ ├── 4-195.png │ ├── 4-25.png │ ├── 4-27.png │ ├── 4-50.png │ ├── 4-75.png │ ├── 4-85.png │ ├── 4-87.png │ ├── 4-90.png │ └── 4-92.png │ ├── 5 │ ├── 5-6.png │ ├── 5-102.png │ ├── 5-106.png │ ├── 5-109.png │ ├── 5-113.png │ ├── 5-114.png │ ├── 5-117.png │ ├── 5-12.png │ ├── 5-123.png │ ├── 5-127.png │ ├── 5-136.png │ ├── 5-139.png │ ├── 5-151.png │ ├── 5-153.png │ ├── 5-161.png │ ├── 5-17.png │ ├── 5-178.png │ ├── 5-179.png │ ├── 5-181.png │ ├── 5-183.png │ ├── 5-186.png │ ├── 5-189.png │ ├── 5-197.png │ ├── 5-23.png │ ├── 5-24.png │ ├── 5-31.png │ ├── 5-41.png │ ├── 5-48.png │ ├── 5-49.png │ ├── 5-52.png │ ├── 5-58.png │ ├── 5-59.png │ ├── 5-77.png │ └── 5-96.png │ ├── 6 │ ├── 6-0.png │ ├── 6-1.png │ ├── 6-115.png │ ├── 6-133.png │ ├── 6-140.png │ ├── 6-141.png │ ├── 6-148.png │ ├── 6-15.png │ ├── 6-155.png │ ├── 6-156.png │ ├── 6-171.png │ ├── 6-26.png │ ├── 6-35.png │ ├── 6-36.png │ ├── 6-60.png │ ├── 6-61.png │ ├── 6-65.png │ ├── 6-66.png │ ├── 6-70.png │ ├── 6-71.png │ ├── 6-83.png │ ├── 6-86.png │ └── 6-91.png │ ├── 7 │ ├── 7-105.png │ ├── 7-110.png │ ├── 7-132.png │ ├── 7-135.png │ ├── 7-147.png │ ├── 7-166.png │ ├── 7-169.png │ ├── 7-174.png │ ├── 7-175.png │ ├── 7-185.png │ ├── 7-20.png │ ├── 7-200.png │ ├── 7-29.png │ ├── 7-45.png │ ├── 7-55.png │ ├── 7-82.png │ ├── 7-89.png │ └── 7-94.png │ └── 8 │ ├── 8-7.png │ ├── 8-104.png │ ├── 8-111.png │ ├── 8-121.png │ ├── 8-122.png │ ├── 8-129.png │ ├── 8-131.png │ ├── 8-14.png │ ├── 8-146.png │ ├── 8-150.png │ ├── 8-154.png │ ├── 8-162.png │ ├── 8-176.png │ ├── 8-180.png │ ├── 8-184.png │ ├── 8-194.png │ ├── 8-199.png │ ├── 8-21.png │ ├── 8-32.png │ ├── 8-42.png │ ├── 8-46.png │ ├── 8-54.png │ ├── 8-56.png │ ├── 8-79.png │ ├── 8-81.png │ └── 8-97.png ├── requirements.txt ├── config.json ├── README.md ├── .gitignore ├── run.py └── LICENSE /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crawler_hdu/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pics/all/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/0.png -------------------------------------------------------------------------------- /pics/all/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/1.png -------------------------------------------------------------------------------- /pics/all/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/10.png -------------------------------------------------------------------------------- /pics/all/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/11.png -------------------------------------------------------------------------------- /pics/all/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/12.png -------------------------------------------------------------------------------- /pics/all/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/13.png -------------------------------------------------------------------------------- /pics/all/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/14.png -------------------------------------------------------------------------------- /pics/all/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/15.png -------------------------------------------------------------------------------- /pics/all/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/16.png -------------------------------------------------------------------------------- /pics/all/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/17.png -------------------------------------------------------------------------------- /pics/all/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/18.png -------------------------------------------------------------------------------- /pics/all/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/19.png -------------------------------------------------------------------------------- /pics/all/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/2.png -------------------------------------------------------------------------------- /pics/all/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/20.png -------------------------------------------------------------------------------- /pics/all/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/21.png -------------------------------------------------------------------------------- /pics/all/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/22.png -------------------------------------------------------------------------------- /pics/all/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/23.png -------------------------------------------------------------------------------- /pics/all/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/24.png -------------------------------------------------------------------------------- /pics/all/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/25.png -------------------------------------------------------------------------------- /pics/all/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/26.png -------------------------------------------------------------------------------- /pics/all/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/27.png -------------------------------------------------------------------------------- /pics/all/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/28.png -------------------------------------------------------------------------------- /pics/all/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/29.png -------------------------------------------------------------------------------- /pics/all/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/3.png -------------------------------------------------------------------------------- /pics/all/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/30.png -------------------------------------------------------------------------------- /pics/all/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/31.png -------------------------------------------------------------------------------- /pics/all/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/32.png -------------------------------------------------------------------------------- /pics/all/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/33.png -------------------------------------------------------------------------------- /pics/all/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/34.png -------------------------------------------------------------------------------- /pics/all/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/35.png -------------------------------------------------------------------------------- /pics/all/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/36.png -------------------------------------------------------------------------------- /pics/all/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/37.png -------------------------------------------------------------------------------- /pics/all/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/38.png -------------------------------------------------------------------------------- /pics/all/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/39.png -------------------------------------------------------------------------------- /pics/all/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/4.png -------------------------------------------------------------------------------- /pics/all/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/40.png -------------------------------------------------------------------------------- /pics/all/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/41.png -------------------------------------------------------------------------------- /pics/all/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/42.png -------------------------------------------------------------------------------- /pics/all/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/43.png -------------------------------------------------------------------------------- /pics/all/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/44.png -------------------------------------------------------------------------------- /pics/all/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/45.png -------------------------------------------------------------------------------- /pics/all/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/46.png -------------------------------------------------------------------------------- /pics/all/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/47.png -------------------------------------------------------------------------------- /pics/all/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/48.png -------------------------------------------------------------------------------- /pics/all/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/49.png -------------------------------------------------------------------------------- /pics/all/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/5.png -------------------------------------------------------------------------------- /pics/all/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/50.png -------------------------------------------------------------------------------- /pics/all/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/51.png -------------------------------------------------------------------------------- /pics/all/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/52.png -------------------------------------------------------------------------------- /pics/all/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/53.png -------------------------------------------------------------------------------- /pics/all/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/54.png -------------------------------------------------------------------------------- /pics/all/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/55.png -------------------------------------------------------------------------------- /pics/all/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/56.png -------------------------------------------------------------------------------- /pics/all/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/57.png -------------------------------------------------------------------------------- /pics/all/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/58.png -------------------------------------------------------------------------------- /pics/all/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/59.png -------------------------------------------------------------------------------- /pics/all/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/6.png -------------------------------------------------------------------------------- /pics/all/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/60.png -------------------------------------------------------------------------------- /pics/all/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/61.png -------------------------------------------------------------------------------- /pics/all/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/62.png -------------------------------------------------------------------------------- /pics/all/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/63.png -------------------------------------------------------------------------------- /pics/all/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/64.png -------------------------------------------------------------------------------- /pics/all/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/65.png -------------------------------------------------------------------------------- /pics/all/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/66.png -------------------------------------------------------------------------------- /pics/all/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/67.png -------------------------------------------------------------------------------- /pics/all/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/68.png -------------------------------------------------------------------------------- /pics/all/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/69.png -------------------------------------------------------------------------------- /pics/all/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/7.png -------------------------------------------------------------------------------- /pics/all/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/70.png -------------------------------------------------------------------------------- /pics/all/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/71.png -------------------------------------------------------------------------------- /pics/all/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/72.png -------------------------------------------------------------------------------- /pics/all/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/73.png -------------------------------------------------------------------------------- /pics/all/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/74.png -------------------------------------------------------------------------------- /pics/all/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/75.png -------------------------------------------------------------------------------- /pics/all/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/76.png -------------------------------------------------------------------------------- /pics/all/77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/77.png -------------------------------------------------------------------------------- /pics/all/78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/78.png -------------------------------------------------------------------------------- /pics/all/79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/79.png -------------------------------------------------------------------------------- /pics/all/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/8.png -------------------------------------------------------------------------------- /pics/all/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/80.png -------------------------------------------------------------------------------- /pics/all/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/81.png -------------------------------------------------------------------------------- /pics/all/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/82.png -------------------------------------------------------------------------------- /pics/all/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/83.png -------------------------------------------------------------------------------- /pics/all/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/84.png -------------------------------------------------------------------------------- /pics/all/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/85.png -------------------------------------------------------------------------------- /pics/all/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/86.png -------------------------------------------------------------------------------- /pics/all/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/87.png -------------------------------------------------------------------------------- /pics/all/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/88.png -------------------------------------------------------------------------------- /pics/all/89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/89.png -------------------------------------------------------------------------------- /pics/all/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/9.png -------------------------------------------------------------------------------- /pics/all/90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/90.png -------------------------------------------------------------------------------- /pics/all/91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/91.png -------------------------------------------------------------------------------- /pics/all/92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/92.png -------------------------------------------------------------------------------- /pics/all/93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/93.png -------------------------------------------------------------------------------- /pics/all/94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/94.png -------------------------------------------------------------------------------- /pics/all/95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/95.png -------------------------------------------------------------------------------- /pics/all/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/96.png -------------------------------------------------------------------------------- /pics/all/97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/97.png -------------------------------------------------------------------------------- /pics/all/98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/98.png -------------------------------------------------------------------------------- /pics/all/99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/all/99.png -------------------------------------------------------------------------------- /pics/test/0/0-17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-17.png -------------------------------------------------------------------------------- /pics/test/0/0-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-2.png -------------------------------------------------------------------------------- /pics/test/0/0-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-22.png -------------------------------------------------------------------------------- /pics/test/0/0-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-25.png -------------------------------------------------------------------------------- /pics/test/0/0-38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-38.png -------------------------------------------------------------------------------- /pics/test/0/0-45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-45.png -------------------------------------------------------------------------------- /pics/test/0/0-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-48.png -------------------------------------------------------------------------------- /pics/test/0/0-63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-63.png -------------------------------------------------------------------------------- /pics/test/0/0-65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-65.png -------------------------------------------------------------------------------- /pics/test/0/0-68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-68.png -------------------------------------------------------------------------------- /pics/test/0/0-75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-75.png -------------------------------------------------------------------------------- /pics/test/0/0-78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-78.png -------------------------------------------------------------------------------- /pics/test/0/0-82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-82.png -------------------------------------------------------------------------------- /pics/test/0/0-90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-90.png -------------------------------------------------------------------------------- /pics/test/0/0-92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-92.png -------------------------------------------------------------------------------- /pics/test/0/0-93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-93.png -------------------------------------------------------------------------------- /pics/test/0/0-97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/0/0-97.png -------------------------------------------------------------------------------- /pics/test/1/1-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-10.png -------------------------------------------------------------------------------- /pics/test/1/1-14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-14.png -------------------------------------------------------------------------------- /pics/test/1/1-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-29.png -------------------------------------------------------------------------------- /pics/test/1/1-37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-37.png -------------------------------------------------------------------------------- /pics/test/1/1-47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-47.png -------------------------------------------------------------------------------- /pics/test/1/1-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-5.png -------------------------------------------------------------------------------- /pics/test/1/1-62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-62.png -------------------------------------------------------------------------------- /pics/test/1/1-67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-67.png -------------------------------------------------------------------------------- /pics/test/1/1-77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-77.png -------------------------------------------------------------------------------- /pics/test/1/1-85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-85.png -------------------------------------------------------------------------------- /pics/test/1/1-89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-89.png -------------------------------------------------------------------------------- /pics/test/1/1-9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/1/1-9.png -------------------------------------------------------------------------------- /pics/test/2/2-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/2/2-32.png -------------------------------------------------------------------------------- /pics/test/2/2-39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/2/2-39.png -------------------------------------------------------------------------------- /pics/test/2/2-41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/2/2-41.png -------------------------------------------------------------------------------- /pics/test/2/2-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/2/2-64.png -------------------------------------------------------------------------------- /pics/test/2/2-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/2/2-72.png -------------------------------------------------------------------------------- /pics/test/3/3-28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-28.png -------------------------------------------------------------------------------- /pics/test/3/3-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-3.png -------------------------------------------------------------------------------- /pics/test/3/3-43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-43.png -------------------------------------------------------------------------------- /pics/test/3/3-53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-53.png -------------------------------------------------------------------------------- /pics/test/3/3-58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-58.png -------------------------------------------------------------------------------- /pics/test/3/3-83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/3/3-83.png -------------------------------------------------------------------------------- /pics/test/4/4-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-40.png -------------------------------------------------------------------------------- /pics/test/4/4-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-50.png -------------------------------------------------------------------------------- /pics/test/4/4-52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-52.png -------------------------------------------------------------------------------- /pics/test/4/4-55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-55.png -------------------------------------------------------------------------------- /pics/test/4/4-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-57.png -------------------------------------------------------------------------------- /pics/test/4/4-91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-91.png -------------------------------------------------------------------------------- /pics/test/5/5-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-1.png -------------------------------------------------------------------------------- /pics/test/5/5-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-13.png -------------------------------------------------------------------------------- /pics/test/5/5-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-16.png -------------------------------------------------------------------------------- /pics/test/5/5-18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-18.png -------------------------------------------------------------------------------- /pics/test/5/5-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-21.png -------------------------------------------------------------------------------- /pics/test/5/5-23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-23.png -------------------------------------------------------------------------------- /pics/test/5/5-26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-26.png -------------------------------------------------------------------------------- /pics/test/5/5-33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-33.png -------------------------------------------------------------------------------- /pics/test/5/5-34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-34.png -------------------------------------------------------------------------------- /pics/test/5/5-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-4.png -------------------------------------------------------------------------------- /pics/test/5/5-42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-42.png -------------------------------------------------------------------------------- /pics/test/5/5-73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-73.png -------------------------------------------------------------------------------- /pics/test/5/5-74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-74.png -------------------------------------------------------------------------------- /pics/test/5/5-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-8.png -------------------------------------------------------------------------------- /pics/test/5/5-81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-81.png -------------------------------------------------------------------------------- /pics/test/5/5-84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-84.png -------------------------------------------------------------------------------- /pics/test/5/5-88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-88.png -------------------------------------------------------------------------------- /pics/test/5/5-96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-96.png -------------------------------------------------------------------------------- /pics/test/5/5-98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/5/5-98.png -------------------------------------------------------------------------------- /pics/test/6/6-35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-35.png -------------------------------------------------------------------------------- /pics/test/6/6-36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-36.png -------------------------------------------------------------------------------- /pics/test/6/6-51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-51.png -------------------------------------------------------------------------------- /pics/test/6/6-56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-56.png -------------------------------------------------------------------------------- /pics/test/6/6-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-60.png -------------------------------------------------------------------------------- /pics/test/6/6-61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/6/6-61.png -------------------------------------------------------------------------------- /pics/test/7/7-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-0.png -------------------------------------------------------------------------------- /pics/test/7/7-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-30.png -------------------------------------------------------------------------------- /pics/test/7/7-46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-46.png -------------------------------------------------------------------------------- /pics/test/7/7-49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-49.png -------------------------------------------------------------------------------- /pics/test/7/7-54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-54.png -------------------------------------------------------------------------------- /pics/test/7/7-59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-59.png -------------------------------------------------------------------------------- /pics/test/7/7-66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-66.png -------------------------------------------------------------------------------- /pics/test/7/7-69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-69.png -------------------------------------------------------------------------------- /pics/test/7/7-70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-70.png -------------------------------------------------------------------------------- /pics/test/7/7-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-76.png -------------------------------------------------------------------------------- /pics/test/7/7-79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-79.png -------------------------------------------------------------------------------- /pics/test/7/7-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/7/7-80.png -------------------------------------------------------------------------------- /pics/test/8/8-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-11.png -------------------------------------------------------------------------------- /pics/test/8/8-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-12.png -------------------------------------------------------------------------------- /pics/test/8/8-15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-15.png -------------------------------------------------------------------------------- /pics/test/8/8-19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-19.png -------------------------------------------------------------------------------- /pics/test/8/8-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-20.png -------------------------------------------------------------------------------- /pics/test/8/8-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-24.png -------------------------------------------------------------------------------- /pics/test/8/8-27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-27.png -------------------------------------------------------------------------------- /pics/test/8/8-31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-31.png -------------------------------------------------------------------------------- /pics/test/8/8-44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-44.png -------------------------------------------------------------------------------- /pics/test/8/8-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-6.png -------------------------------------------------------------------------------- /pics/test/8/8-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-7.png -------------------------------------------------------------------------------- /pics/test/8/8-71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-71.png -------------------------------------------------------------------------------- /pics/test/8/8-86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-86.png -------------------------------------------------------------------------------- /pics/test/8/8-87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-87.png -------------------------------------------------------------------------------- /pics/test/8/8-94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-94.png -------------------------------------------------------------------------------- /pics/test/8/8-95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-95.png -------------------------------------------------------------------------------- /pics/test/8/8-99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/8/8-99.png -------------------------------------------------------------------------------- /pics/train/0/0-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-3.png -------------------------------------------------------------------------------- /pics/train/0/0-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-5.png -------------------------------------------------------------------------------- /pics/train/1/1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-2.png -------------------------------------------------------------------------------- /pics/train/1/1-9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-9.png -------------------------------------------------------------------------------- /pics/train/2/2-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-4.png -------------------------------------------------------------------------------- /pics/train/3/3-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-8.png -------------------------------------------------------------------------------- /pics/train/5/5-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-6.png -------------------------------------------------------------------------------- /pics/train/6/6-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-0.png -------------------------------------------------------------------------------- /pics/train/6/6-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-1.png -------------------------------------------------------------------------------- /pics/train/8/8-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-7.png -------------------------------------------------------------------------------- /pics/test/4/4-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/test/4/4-100.png -------------------------------------------------------------------------------- /pics/train/0/0-107.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-107.png -------------------------------------------------------------------------------- /pics/train/0/0-137.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-137.png -------------------------------------------------------------------------------- /pics/train/0/0-143.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-143.png -------------------------------------------------------------------------------- /pics/train/0/0-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-152.png -------------------------------------------------------------------------------- /pics/train/0/0-158.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-158.png -------------------------------------------------------------------------------- /pics/train/0/0-160.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-160.png -------------------------------------------------------------------------------- /pics/train/0/0-165.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-165.png -------------------------------------------------------------------------------- /pics/train/0/0-168.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-168.png -------------------------------------------------------------------------------- /pics/train/0/0-182.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-182.png -------------------------------------------------------------------------------- /pics/train/0/0-187.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-187.png -------------------------------------------------------------------------------- /pics/train/0/0-190.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-190.png -------------------------------------------------------------------------------- /pics/train/0/0-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-192.png -------------------------------------------------------------------------------- /pics/train/0/0-193.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-193.png -------------------------------------------------------------------------------- /pics/train/0/0-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-30.png -------------------------------------------------------------------------------- /pics/train/0/0-38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-38.png -------------------------------------------------------------------------------- /pics/train/0/0-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-40.png -------------------------------------------------------------------------------- /pics/train/0/0-63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-63.png -------------------------------------------------------------------------------- /pics/train/0/0-68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-68.png -------------------------------------------------------------------------------- /pics/train/0/0-73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-73.png -------------------------------------------------------------------------------- /pics/train/0/0-95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/0/0-95.png -------------------------------------------------------------------------------- /pics/train/1/1-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-120.png -------------------------------------------------------------------------------- /pics/train/1/1-124.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-124.png -------------------------------------------------------------------------------- /pics/train/1/1-130.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-130.png -------------------------------------------------------------------------------- /pics/train/1/1-142.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-142.png -------------------------------------------------------------------------------- /pics/train/1/1-145.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-145.png -------------------------------------------------------------------------------- /pics/train/1/1-157.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-157.png -------------------------------------------------------------------------------- /pics/train/1/1-164.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-164.png -------------------------------------------------------------------------------- /pics/train/1/1-167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-167.png -------------------------------------------------------------------------------- /pics/train/1/1-34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-34.png -------------------------------------------------------------------------------- /pics/train/1/1-37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-37.png -------------------------------------------------------------------------------- /pics/train/1/1-44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-44.png -------------------------------------------------------------------------------- /pics/train/1/1-62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-62.png -------------------------------------------------------------------------------- /pics/train/1/1-67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-67.png -------------------------------------------------------------------------------- /pics/train/1/1-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-72.png -------------------------------------------------------------------------------- /pics/train/1/1-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-80.png -------------------------------------------------------------------------------- /pics/train/1/1-99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/1/1-99.png -------------------------------------------------------------------------------- /pics/train/2/2-101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-101.png -------------------------------------------------------------------------------- /pics/train/2/2-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-11.png -------------------------------------------------------------------------------- /pics/train/2/2-112.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-112.png -------------------------------------------------------------------------------- /pics/train/2/2-118.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-118.png -------------------------------------------------------------------------------- /pics/train/2/2-119.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-119.png -------------------------------------------------------------------------------- /pics/train/2/2-126.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-126.png -------------------------------------------------------------------------------- /pics/train/2/2-144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-144.png -------------------------------------------------------------------------------- /pics/train/2/2-159.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-159.png -------------------------------------------------------------------------------- /pics/train/2/2-177.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-177.png -------------------------------------------------------------------------------- /pics/train/2/2-18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-18.png -------------------------------------------------------------------------------- /pics/train/2/2-19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-19.png -------------------------------------------------------------------------------- /pics/train/2/2-196.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-196.png -------------------------------------------------------------------------------- /pics/train/2/2-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-22.png -------------------------------------------------------------------------------- /pics/train/2/2-39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-39.png -------------------------------------------------------------------------------- /pics/train/2/2-47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-47.png -------------------------------------------------------------------------------- /pics/train/2/2-51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-51.png -------------------------------------------------------------------------------- /pics/train/2/2-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-57.png -------------------------------------------------------------------------------- /pics/train/2/2-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-64.png -------------------------------------------------------------------------------- /pics/train/2/2-69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-69.png -------------------------------------------------------------------------------- /pics/train/2/2-74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-74.png -------------------------------------------------------------------------------- /pics/train/2/2-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/2/2-76.png -------------------------------------------------------------------------------- /pics/train/3/3-103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-103.png -------------------------------------------------------------------------------- /pics/train/3/3-108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-108.png -------------------------------------------------------------------------------- /pics/train/3/3-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-128.png -------------------------------------------------------------------------------- /pics/train/3/3-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-13.png -------------------------------------------------------------------------------- /pics/train/3/3-134.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-134.png -------------------------------------------------------------------------------- /pics/train/3/3-138.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-138.png -------------------------------------------------------------------------------- /pics/train/3/3-149.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-149.png -------------------------------------------------------------------------------- /pics/train/3/3-163.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-163.png -------------------------------------------------------------------------------- /pics/train/3/3-173.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-173.png -------------------------------------------------------------------------------- /pics/train/3/3-188.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-188.png -------------------------------------------------------------------------------- /pics/train/3/3-198.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-198.png -------------------------------------------------------------------------------- /pics/train/3/3-28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-28.png -------------------------------------------------------------------------------- /pics/train/3/3-33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-33.png -------------------------------------------------------------------------------- /pics/train/3/3-43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-43.png -------------------------------------------------------------------------------- /pics/train/3/3-53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-53.png -------------------------------------------------------------------------------- /pics/train/3/3-78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-78.png -------------------------------------------------------------------------------- /pics/train/3/3-84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-84.png -------------------------------------------------------------------------------- /pics/train/3/3-88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-88.png -------------------------------------------------------------------------------- /pics/train/3/3-93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-93.png -------------------------------------------------------------------------------- /pics/train/3/3-98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/3/3-98.png -------------------------------------------------------------------------------- /pics/train/4/4-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-10.png -------------------------------------------------------------------------------- /pics/train/4/4-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-100.png -------------------------------------------------------------------------------- /pics/train/4/4-116.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-116.png -------------------------------------------------------------------------------- /pics/train/4/4-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-125.png -------------------------------------------------------------------------------- /pics/train/4/4-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-16.png -------------------------------------------------------------------------------- /pics/train/4/4-170.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-170.png -------------------------------------------------------------------------------- /pics/train/4/4-172.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-172.png -------------------------------------------------------------------------------- /pics/train/4/4-191.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-191.png -------------------------------------------------------------------------------- /pics/train/4/4-195.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-195.png -------------------------------------------------------------------------------- /pics/train/4/4-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-25.png -------------------------------------------------------------------------------- /pics/train/4/4-27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-27.png -------------------------------------------------------------------------------- /pics/train/4/4-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-50.png -------------------------------------------------------------------------------- /pics/train/4/4-75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-75.png -------------------------------------------------------------------------------- /pics/train/4/4-85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-85.png -------------------------------------------------------------------------------- /pics/train/4/4-87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-87.png -------------------------------------------------------------------------------- /pics/train/4/4-90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-90.png -------------------------------------------------------------------------------- /pics/train/4/4-92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/4/4-92.png -------------------------------------------------------------------------------- /pics/train/5/5-102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-102.png -------------------------------------------------------------------------------- /pics/train/5/5-106.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-106.png -------------------------------------------------------------------------------- /pics/train/5/5-109.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-109.png -------------------------------------------------------------------------------- /pics/train/5/5-113.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-113.png -------------------------------------------------------------------------------- /pics/train/5/5-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-114.png -------------------------------------------------------------------------------- /pics/train/5/5-117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-117.png -------------------------------------------------------------------------------- /pics/train/5/5-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-12.png -------------------------------------------------------------------------------- /pics/train/5/5-123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-123.png -------------------------------------------------------------------------------- /pics/train/5/5-127.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-127.png -------------------------------------------------------------------------------- /pics/train/5/5-136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-136.png -------------------------------------------------------------------------------- /pics/train/5/5-139.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-139.png -------------------------------------------------------------------------------- /pics/train/5/5-151.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-151.png -------------------------------------------------------------------------------- /pics/train/5/5-153.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-153.png -------------------------------------------------------------------------------- /pics/train/5/5-161.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-161.png -------------------------------------------------------------------------------- /pics/train/5/5-17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-17.png -------------------------------------------------------------------------------- /pics/train/5/5-178.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-178.png -------------------------------------------------------------------------------- /pics/train/5/5-179.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-179.png -------------------------------------------------------------------------------- /pics/train/5/5-181.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-181.png -------------------------------------------------------------------------------- /pics/train/5/5-183.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-183.png -------------------------------------------------------------------------------- /pics/train/5/5-186.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-186.png -------------------------------------------------------------------------------- /pics/train/5/5-189.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-189.png -------------------------------------------------------------------------------- /pics/train/5/5-197.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-197.png -------------------------------------------------------------------------------- /pics/train/5/5-23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-23.png -------------------------------------------------------------------------------- /pics/train/5/5-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-24.png -------------------------------------------------------------------------------- /pics/train/5/5-31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-31.png -------------------------------------------------------------------------------- /pics/train/5/5-41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-41.png -------------------------------------------------------------------------------- /pics/train/5/5-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-48.png -------------------------------------------------------------------------------- /pics/train/5/5-49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-49.png -------------------------------------------------------------------------------- /pics/train/5/5-52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-52.png -------------------------------------------------------------------------------- /pics/train/5/5-58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-58.png -------------------------------------------------------------------------------- /pics/train/5/5-59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-59.png -------------------------------------------------------------------------------- /pics/train/5/5-77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-77.png -------------------------------------------------------------------------------- /pics/train/5/5-96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/5/5-96.png -------------------------------------------------------------------------------- /pics/train/6/6-115.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-115.png -------------------------------------------------------------------------------- /pics/train/6/6-133.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-133.png -------------------------------------------------------------------------------- /pics/train/6/6-140.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-140.png -------------------------------------------------------------------------------- /pics/train/6/6-141.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-141.png -------------------------------------------------------------------------------- /pics/train/6/6-148.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-148.png -------------------------------------------------------------------------------- /pics/train/6/6-15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-15.png -------------------------------------------------------------------------------- /pics/train/6/6-155.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-155.png -------------------------------------------------------------------------------- /pics/train/6/6-156.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-156.png -------------------------------------------------------------------------------- /pics/train/6/6-171.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-171.png -------------------------------------------------------------------------------- /pics/train/6/6-26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-26.png -------------------------------------------------------------------------------- /pics/train/6/6-35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-35.png -------------------------------------------------------------------------------- /pics/train/6/6-36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-36.png -------------------------------------------------------------------------------- /pics/train/6/6-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-60.png -------------------------------------------------------------------------------- /pics/train/6/6-61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-61.png -------------------------------------------------------------------------------- /pics/train/6/6-65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-65.png -------------------------------------------------------------------------------- /pics/train/6/6-66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-66.png -------------------------------------------------------------------------------- /pics/train/6/6-70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-70.png -------------------------------------------------------------------------------- /pics/train/6/6-71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-71.png -------------------------------------------------------------------------------- /pics/train/6/6-83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-83.png -------------------------------------------------------------------------------- /pics/train/6/6-86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-86.png -------------------------------------------------------------------------------- /pics/train/6/6-91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/6/6-91.png -------------------------------------------------------------------------------- /pics/train/7/7-105.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-105.png -------------------------------------------------------------------------------- /pics/train/7/7-110.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-110.png -------------------------------------------------------------------------------- /pics/train/7/7-132.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-132.png -------------------------------------------------------------------------------- /pics/train/7/7-135.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-135.png -------------------------------------------------------------------------------- /pics/train/7/7-147.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-147.png -------------------------------------------------------------------------------- /pics/train/7/7-166.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-166.png -------------------------------------------------------------------------------- /pics/train/7/7-169.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-169.png -------------------------------------------------------------------------------- /pics/train/7/7-174.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-174.png -------------------------------------------------------------------------------- /pics/train/7/7-175.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-175.png -------------------------------------------------------------------------------- /pics/train/7/7-185.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-185.png -------------------------------------------------------------------------------- /pics/train/7/7-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-20.png -------------------------------------------------------------------------------- /pics/train/7/7-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-200.png -------------------------------------------------------------------------------- /pics/train/7/7-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-29.png -------------------------------------------------------------------------------- /pics/train/7/7-45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-45.png -------------------------------------------------------------------------------- /pics/train/7/7-55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-55.png -------------------------------------------------------------------------------- /pics/train/7/7-82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-82.png -------------------------------------------------------------------------------- /pics/train/7/7-89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-89.png -------------------------------------------------------------------------------- /pics/train/7/7-94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/7/7-94.png -------------------------------------------------------------------------------- /pics/train/8/8-104.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-104.png -------------------------------------------------------------------------------- /pics/train/8/8-111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-111.png -------------------------------------------------------------------------------- /pics/train/8/8-121.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-121.png -------------------------------------------------------------------------------- /pics/train/8/8-122.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-122.png -------------------------------------------------------------------------------- /pics/train/8/8-129.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-129.png -------------------------------------------------------------------------------- /pics/train/8/8-131.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-131.png -------------------------------------------------------------------------------- /pics/train/8/8-14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-14.png -------------------------------------------------------------------------------- /pics/train/8/8-146.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-146.png -------------------------------------------------------------------------------- /pics/train/8/8-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-150.png -------------------------------------------------------------------------------- /pics/train/8/8-154.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-154.png -------------------------------------------------------------------------------- /pics/train/8/8-162.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-162.png -------------------------------------------------------------------------------- /pics/train/8/8-176.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-176.png -------------------------------------------------------------------------------- /pics/train/8/8-180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-180.png -------------------------------------------------------------------------------- /pics/train/8/8-184.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-184.png -------------------------------------------------------------------------------- /pics/train/8/8-194.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-194.png -------------------------------------------------------------------------------- /pics/train/8/8-199.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-199.png -------------------------------------------------------------------------------- /pics/train/8/8-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-21.png -------------------------------------------------------------------------------- /pics/train/8/8-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-32.png -------------------------------------------------------------------------------- /pics/train/8/8-42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-42.png -------------------------------------------------------------------------------- /pics/train/8/8-46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-46.png -------------------------------------------------------------------------------- /pics/train/8/8-54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-54.png -------------------------------------------------------------------------------- /pics/train/8/8-56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-56.png -------------------------------------------------------------------------------- /pics/train/8/8-79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-79.png -------------------------------------------------------------------------------- /pics/train/8/8-81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-81.png -------------------------------------------------------------------------------- /pics/train/8/8-97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyrus97/HDU/HEAD/pics/train/8/8-97.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests>=2.21.0 2 | numpy>=1.15.1 3 | Pillow>=5.2.0 4 | beautifulsoup4>=4.6.3 5 | scikit_learn>=0.20.2 6 | lxml>=4.2.5 7 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "username": "学号", 3 | "password": "密码", 4 | "courses": { 5 | "通识选修课": [ 6 | { 7 | "课程名称": "国学雅集", 8 | "课程性质": "人文经典与人文修养", 9 | "课程归属": "通识选修一般课", 10 | "课程代码": "C1292016", 11 | "上课时间": "" 12 | }, 13 | { 14 | "课程名称": "文学与人生", 15 | "课程性质": "人文经典与人文修养", 16 | "课程归属": "通识选修一般课", 17 | "课程代码": "C1292030", 18 | "上课时间": "" 19 | } 20 | ], 21 | "普通理论课": [ 22 | { 23 | "课程名称": "编译原理", 24 | "课程性质": "专业必修", 25 | "课程代码": "A0504020", 26 | "上课时间": "", 27 | "教师名称": "" 28 | } 29 | ], 30 | "体育课": [ 31 | { 32 | "课程名称": "羽毛球", 33 | "课程代码": "T1300020", 34 | "教师姓名": "", 35 | "上课时间": "" 36 | } 37 | ] 38 | }, 39 | "from_email": "发送通知的邮箱", 40 | "from_email_psw": "发送通知的邮箱的密码", 41 | "to_email": "接收通知的邮箱", 42 | "delay": 5 43 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HDU 选课 2 | 3 | ## 简介 4 | 这是一个适用于杭州电子科技大学选课系统的选课脚本。该脚本使用 Python 编写,目前支持通识选修课模块的选课功能,体育课和普通理论课的选课功能正在计划中。 5 | 6 | ## 环境依赖 7 | - Python 3 8 | - Git 9 | 10 | ## 安装 11 | ``` 12 | git clone https://github.com/Cyrus97/HDU.git 13 | cd HDU 14 | pip install -r ./requirements.txt 15 | ``` 16 | 17 | ## 配置文件 18 | 使用之前需要配置好项目下的 [config.json](./config.json) 文件。 19 | 20 | 下面是对该配置文件的详细说明。 21 | 22 | ``` 23 | { 24 | "username": "学号", // 数字杭电登录账号,即学号 25 | "password": "密码", // 数字杭电密码 26 | // 把相关课程按照模板填入,课程名称和课程代码是必须要填的,其他的可以空着 27 | "courses": { 28 | "通识选修课": [ 29 | { 30 | "课程名称": "国学雅集", 31 | "课程性质": "人文经典与人文修养", 32 | "课程归属": "通识选修一般课", 33 | "课程代码": "C1292016", 34 | "上课时间": "" 35 | }, 36 | { 37 | "课程名称": "文学与人生", 38 | "课程性质": "人文经典与人文修养", 39 | "课程归属": "通识选修一般课", 40 | "课程代码": "C1292030", 41 | "上课时间": "" 42 | } 43 | ] 44 | }, 45 | // 选课成功会发送邮件,如果留空则不会发送 46 | "from_email": "发送通知的邮箱", 47 | "from_email_psw": "发送通知的邮箱的密码", 48 | "to_email": "接收通知的邮箱", 49 | "delay": 5 // 选课频率,越小越快,无特殊要求不要更改 50 | } 51 | ``` 52 | 53 | ## 快速开始 54 | 安装完成,配置完文件就可以愉快的运行了。 55 | 56 | ``` 57 | python ./run.py 58 | ``` 59 | 60 | ## 问题 61 | 为了让大家都可以看到,有任何问题请提 issue。 62 | 63 | ## TODO 64 | - [ ] 支持体育课,普通理论课 65 | - [ ] 支持多进程,每个进程进行不同种类的课程的选课 66 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | MANIFEST 27 | 28 | # PyInstaller 29 | # Usually these files are written by a python script from a template 30 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 31 | *.manifest 32 | *.spec 33 | 34 | # Installer logs 35 | pip-log.txt 36 | pip-delete-this-directory.txt 37 | 38 | # Unit test / coverage reports 39 | htmlcov/ 40 | .tox/ 41 | .coverage 42 | .coverage.* 43 | .cache 44 | nosetests.xml 45 | coverage.xml 46 | *.cover 47 | .hypothesis/ 48 | .pytest_cache/ 49 | 50 | # Translations 51 | *.mo 52 | *.pot 53 | 54 | # Django stuff: 55 | *.log 56 | local_settings.py 57 | db.sqlite3 58 | 59 | # Flask stuff: 60 | instance/ 61 | .webassets-cache 62 | 63 | # Scrapy stuff: 64 | .scrapy 65 | 66 | # Sphinx documentation 67 | docs/_build/ 68 | 69 | # PyBuilder 70 | target/ 71 | 72 | # Jupyter Notebook 73 | .ipynb_checkpoints 74 | 75 | # pyenv 76 | .python-version 77 | 78 | # celery beat schedule file 79 | celerybeat-schedule 80 | 81 | # SageMath parsed files 82 | *.sage.py 83 | 84 | # Environments 85 | .env 86 | .venv 87 | env/ 88 | venv/ 89 | ENV/ 90 | env.bak/ 91 | venv.bak/ 92 | 93 | # Spyder project settings 94 | .spyderproject 95 | .spyproject 96 | 97 | # Rope project settings 98 | .ropeproject 99 | 100 | # mkdocs documentation 101 | /site 102 | 103 | # mypy 104 | .mypy_cache/ 105 | 106 | # test config 107 | test*.json 108 | 109 | # database 110 | *.db 111 | 112 | # idea 113 | .idea 114 | 115 | # model 116 | */*.pickle 117 | *.pickle 118 | 119 | cookie*.txt -------------------------------------------------------------------------------- /utils/util.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import smtplib 3 | from email.mime.text import MIMEText 4 | 5 | from utils import pyDes 6 | 7 | 8 | def get_logger(name, level=logging.INFO): 9 | logger = logging.getLogger(name) 10 | logger.setLevel(level) 11 | fh = logging.FileHandler('hdu-log.log', encoding='utf-8') 12 | ch = logging.StreamHandler() 13 | formatter = logging.Formatter(fmt="[%(asctime)s %(levelname)s] %(name)s %(message)s", datefmt="%Y/%m/%d %X") 14 | fh.setFormatter(formatter) 15 | ch.setFormatter(formatter) 16 | logger.addHandler(fh) 17 | logger.addHandler(ch) 18 | 19 | return logger 20 | 21 | 22 | def send_email(from_addr, psw, to_addr, content): 23 | msg = MIMEText(''.join(content), 'plain', 'utf-8') 24 | msg['From'] = 'HDU-Notify<{sender}>'.format(sender=from_addr) 25 | msg['To'] = '<{to_addr}>'.format(to_addr=to_addr) 26 | msg['Subject'] = '课程通知-已监控到你要的课程' 27 | 28 | server = smtplib.SMTP_SSL('smtp.qq.com', 465) 29 | # server.set_debuglevel(1) 30 | server.login(from_addr, psw) 31 | server.sendmail(from_addr, [to_addr], msg.as_string()) 32 | server.quit() 33 | 34 | 35 | def strenc(data, firstkey, secondkey, thirdKey): 36 | bts_data = extend_to_16bits(data) 37 | bts_firstkey = extend_to_16bits(firstkey) 38 | bts_secondkey = extend_to_16bits(secondkey) 39 | bts_thirdkey = extend_to_16bits(thirdKey) 40 | i = 0 41 | bts_result = [] 42 | while i < len(bts_data): 43 | bts_temp = bts_data[i:i + 8] # 将data分成每64位一段,分段加密 44 | j, k, z = 0, 0, 0 45 | while j < len(bts_firstkey): 46 | des_k = pyDes.des(bts_firstkey[j: j + 8], pyDes.ECB) # 分别取出 first_key 的64位作为密钥 47 | bts_temp = list(des_k.encrypt(bts_temp)) 48 | j += 8 49 | while k < len(bts_secondkey): 50 | des_k = pyDes.des(bts_secondkey[k:k + 8], pyDes.ECB) # 分别取出 second_key 的64位作为密钥 51 | bts_temp = list(des_k.encrypt(bts_temp)) 52 | k += 8 53 | 54 | while z < len(bts_thirdkey): 55 | des_k = pyDes.des(bts_thirdkey[z:z + 8], pyDes.ECB) # 分别取出 second_key 的64位作为密钥 56 | bts_temp = list(des_k.encrypt(bts_temp)) 57 | z += 8 58 | 59 | bts_result.extend(bts_temp) 60 | i += 8 61 | str_result = '' 62 | for each in bts_result: 63 | str_result += '%02X' % each # 分别加密data的各段,串联成字符串 64 | return str_result 65 | 66 | 67 | def extend_to_16bits(data): # 将字符串的每个字符前插入 0,变成16位,并在后面补0,使其长度是64位整数倍 68 | bts = data.encode() 69 | filled_bts = [] 70 | for each in bts: 71 | filled_bts.extend([0, each]) # 每个字符前插入 0 72 | while len(filled_bts) % 8 != 0: # 长度扩展到8的倍数 73 | filled_bts.append(0) # 不是8的倍数,后面添加0,便于DES加密时分组 74 | return filled_bts 75 | 76 | 77 | if __name__ == '__main__': 78 | send_email(from_addr=None, psw=None, to_addr="974451090@qq.com", content="info") 79 | -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- 1 | import argparse 2 | import json 3 | 4 | from crawler_hdu.login import IHDU 5 | from crawler_hdu.service import ElectiveService 6 | from utils.util import get_logger 7 | 8 | logger = get_logger(__name__) 9 | CONFIG_FILE = 'config.json' 10 | DEV_FILE = 'test.json' 11 | 12 | 13 | def check_config(file_path): 14 | """ 15 | 检查配置文件,若有问题给出提示,否则返回每种选课的必要数据。 16 | :param file_path: 配置文件路径 17 | :return: 18 | """ 19 | elective = None 20 | sport = None 21 | pt = None 22 | config = None 23 | try: 24 | with open(file_path, 'r', encoding="utf-8") as f: 25 | config = json.load(f) 26 | except Exception: 27 | logger.error('没有找到配置文件,或者配置有误,请先配置好再重试。更多可以查看 Json 文件格式。', exc_info=1) 28 | exit(1) 29 | common = dict() 30 | # TODO: 检查每一项,给出提示 31 | common['username'] = config.get('username') 32 | common['password'] = config.get('password') 33 | common['from_email'] = config.get('from_email') 34 | common['from_email_psw'] = config.get('from_email_psw') 35 | common['to_email'] = config.get('to_email') 36 | common['delay'] = config.get('delay') 37 | 38 | courses = config.get('courses') 39 | 40 | elec_cos = courses.get('通识选修课') 41 | if elec_cos and len(elec_cos): 42 | elective = dict(common) 43 | elective.update({'courses': elec_cos}) 44 | else: 45 | logger.warning('未检测到通识选修课的配置。') 46 | 47 | spt_cos = courses.get('体育课') 48 | if spt_cos and len(spt_cos): 49 | sport = dict(common) 50 | sport.update({'courses': spt_cos}) 51 | else: 52 | logger.warning('未检测到体育课的配置。') 53 | 54 | pt_cos = courses.get('普通理论课') 55 | if pt_cos and len(pt_cos): 56 | pt = dict() 57 | pt.update({'courses': pt_cos}) 58 | else: 59 | logger.warning('未检测到普通理论课的配置。') 60 | 61 | if not (elective or sport or pt): 62 | logger.warning('你未配置任何选课课程,请重新确认配置文件。如果你不需要选课,请忽略本条信息。') 63 | 64 | return common, elective, sport, pt 65 | 66 | 67 | def parse_args(): 68 | parser = argparse.ArgumentParser(usage='%(prog)s [options]', description='For HDU.', add_help=True) 69 | parser.add_argument('-f', '--file', dest='file', help='use special config file', metavar='FILE') 70 | parser.add_argument('-d', '--dev', action='store_true', dest='dev', help='run with dev mood') 71 | parser.add_argument('--only-login', action='store_true', dest='only_login', help='only login') 72 | parser.add_argument('--not-choose', action='store_true', dest='not_choose', help='do not choose course') 73 | 74 | args = parser.parse_args() 75 | return args 76 | 77 | 78 | def main(): 79 | args = parse_args() 80 | config_file = CONFIG_FILE 81 | if args.file: 82 | config_file = args.file 83 | elif args.dev: 84 | config_file = DEV_FILE 85 | logger.warning('当前使用测试配置!') 86 | 87 | common, elective, sport, pt = check_config(config_file) 88 | 89 | hdu = IHDU(username=common.get('username'), password=common.get('password')) 90 | hdu.login() 91 | 92 | # 启动选课服务 93 | if not args.only_login: 94 | e_s = ElectiveService(hdu.extract(), elective) 95 | e_s.start() 96 | 97 | 98 | if __name__ == '__main__': 99 | main() 100 | -------------------------------------------------------------------------------- /utils/train.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import pickle 4 | from io import BytesIO 5 | 6 | import numpy as np 7 | import requests 8 | from PIL import Image 9 | from sklearn import svm 10 | from sklearn.metrics import classification_report 11 | 12 | 13 | def load_pics(path, kind='train'): 14 | kind_path = os.path.join(path, kind) 15 | images = [] 16 | labels = [] 17 | # 验证码 0-8,没有 9 18 | for i in range(10): 19 | label_path = os.path.join(kind_path, str(i)) 20 | if not os.path.exists(label_path): 21 | continue 22 | for file in os.listdir(label_path): 23 | with Image.open(os.path.join(label_path, file), 'r') as img: 24 | images.append(np.asarray(img, dtype=np.uint8)) 25 | labels.append(i) 26 | 27 | images = np.array(images).reshape(len(labels), 7 * 12) 28 | labels = np.array(labels) 29 | 30 | return images, labels 31 | 32 | 33 | def get_bin_table(threshold=140): 34 | """ 35 | 获取灰度转二值的映射table 36 | :param threshold: 37 | :return: 38 | """ 39 | table = [] 40 | for i in range(256): 41 | if i < threshold: 42 | table.append(0) 43 | else: 44 | table.append(1) 45 | 46 | return table 47 | 48 | 49 | def get_crop_img(img): 50 | """ 51 | 按照图片的特点,进行切割 52 | :param img: 53 | :return: 54 | """ 55 | child_img_list = [] 56 | for i in range(5): 57 | x = 6 + i * (7 + 2) 58 | y = 5 59 | child_img = img.crop((x, y, x + 7, y + 12)) 60 | # child_img.show() 61 | child_img_list.append(child_img) 62 | 63 | return child_img_list 64 | 65 | 66 | def recognize_img(img, clf): 67 | """ 68 | 识别验证码 69 | :param img: 70 | :return: 71 | """ 72 | imgry = img.convert('L') # 转为灰度 73 | out = imgry.point(get_bin_table(), '1') # 二值化 74 | child_img_list = get_crop_img(out) # 切割 75 | 76 | numbers = [] 77 | for child_img in child_img_list: 78 | image = np.asarray(child_img, dtype=np.int8).reshape(1, 7 * 12) 79 | y_number = clf.predict(image) 80 | numbers.append(y_number.tolist().pop()) 81 | 82 | code = '' 83 | for i in range(0, len(numbers)): 84 | code = code + str(numbers[i]) 85 | 86 | return code 87 | 88 | 89 | def get_clf_by_train(file_path): 90 | clf = None 91 | # 读入数据 92 | if os.path.exists(file_path): 93 | X_train, y_train = load_pics(file_path, kind='train') 94 | 95 | clf = svm.SVC(C=1.0, kernel='poly', degree=1, gamma='auto') 96 | clf.fit(X_train, y_train) 97 | # 保存模型 98 | with open('hdu.pickle', 'wb') as f: 99 | pickle.dump(clf, f) 100 | else: 101 | print('没有发现图片数据路径!') 102 | 103 | return clf 104 | 105 | 106 | def get_clf(): 107 | file_path = os.path.join(os.path.dirname(__file__), '../pics/') 108 | clf = None 109 | try: 110 | with open('hdu.pickle', 'r') as f: 111 | clf = pickle.load(f) 112 | except: 113 | clf = get_clf_by_train(file_path) 114 | return clf 115 | 116 | 117 | if __name__ == '__main__': 118 | file_path = os.path.abspath('../pics/') 119 | clf = get_clf() 120 | X_test, y_test = load_pics(file_path, kind='test') 121 | print(clf.score(X_test, y_test)) 122 | y_pred = clf.predict(X_test) 123 | print(classification_report(y_test, y_pred)) 124 | url = "http://jxgl.hdu.edu.cn/CheckCode.aspx" 125 | img = Image.open(BytesIO(requests.get(url).content)) 126 | img.show() 127 | 128 | print(recognize_img(img, clf)) 129 | -------------------------------------------------------------------------------- /crawler_hdu/login.py: -------------------------------------------------------------------------------- 1 | import json 2 | import os 3 | import re 4 | 5 | import requests 6 | from bs4 import BeautifulSoup 7 | 8 | from utils.util import get_logger, strenc 9 | 10 | logger = get_logger(__name__) 11 | 12 | HDU_LOGIN_URL = "https://cas.hdu.edu.cn/cas/login?service=https%3A%2F%2Fi.hdu.edu.cn%2Ftp_up%2F" 13 | # 该链接直接通过 cas 认证转入选课链接 14 | CAS_XUANKE_URL = "http://cas.hdu.edu.cn/cas/login?service=http://jxgl.hdu.edu.cn/index.aspx" 15 | # 保存 cookie 的文件 16 | COOKIES_FILE = 'cookies.txt' 17 | # 登录重试次数 18 | RETRY = 3 19 | 20 | 21 | class IHDU: 22 | def __init__(self, username, password): 23 | self.username = username 24 | self.password = password 25 | self.realname = None 26 | self.session = requests.session() 27 | self.home_url = 'http://jxgl.hdu.edu.cn/xs_main.aspx?xh={xh}'.format(xh=username) 28 | 29 | def login(self): 30 | retry = 0 31 | while retry < RETRY: 32 | retry += 1 33 | logger.info('尝试第 %s 次登录', retry) 34 | # 只使用一次:从本地文件读取cookie 35 | if retry == 1 and os.path.exists(COOKIES_FILE): 36 | logger.info('从本地文件读取 cookies') 37 | with open(COOKIES_FILE, 'r') as f: 38 | self.session.cookies.update(json.loads(f.read())) 39 | else: 40 | self._do_login() 41 | 42 | # 更新使用于选课系统的 headers 43 | headers = { 44 | 'accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", 45 | 'accept-encoding': "gzip, deflate", 46 | 'accept-language': "zh-CN,zh;q=0.9", 47 | 'connection': "keep-alive", 48 | 'host': "jxgl.hdu.edu.cn", 49 | 'referer': self.home_url, 50 | 'upgrade-insecure-requests': "1", 51 | 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", 52 | 'cache-control': "no-cache", 53 | } 54 | self.session.headers.update(headers) # 更新 headers 55 | 56 | if self._check_sess_vaild(): 57 | logger.info('登录成功!你好%s!', self.realname) 58 | with open(COOKIES_FILE, 'w') as f: 59 | f.write(json.dumps(self.session.cookies.get_dict())) 60 | break 61 | else: 62 | logger.error('登录选课系统失败!请重试。') 63 | # self.session.cookies.clear() # 直接清除 cookie 有点问题 64 | self.session = requests.session() 65 | 66 | def _do_login(self): 67 | """登录数字杭电,然后转跳到教务系统。""" 68 | headers = { 69 | 'accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", 70 | 'accept-encoding': "gzip, deflate, br", 71 | 'accept-language': "zh-CN,zh;q=0.9,en;q=0.8", 72 | 'cache-control': "max-age=0", 73 | 'connection': "keep-alive", 74 | 'content-type': "application/x-www-form-urlencoded", 75 | 'host': "cas.hdu.edu.cn", 76 | 'origin': "http://cas.hdu.edu.cn", 77 | 'upgrade-insecure-requests': "1", 78 | 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", 79 | } 80 | payload = self._get_payload(CAS_XUANKE_URL) 81 | 82 | # 通过智慧杭电认证 83 | try: 84 | logger.info("Hit %s", CAS_XUANKE_URL) 85 | rsp = self.session.post(CAS_XUANKE_URL, data=payload, headers=headers, allow_redirects=False) 86 | except Exception: 87 | logger.error('认证失败!可能是账户或密码有误。') 88 | return 89 | 90 | # 选课系统转跳 91 | try: 92 | next_url = rsp.headers['Location'] 93 | logger.info("Hit %s", next_url) 94 | rsp = self.session.get(next_url, allow_redirects=False) 95 | except Exception: 96 | logger.error('登录选课系统失败!请重试。') 97 | return 98 | 99 | def _get_payload(self, url): 100 | rsp = self.session.get(url) 101 | if rsp.status_code != 200: 102 | return None 103 | soup = BeautifulSoup(rsp.text, 'lxml').find('script', id='password_template') 104 | soup = BeautifulSoup(soup.contents[0], 'lxml') 105 | lt = soup.find('input', id='lt')['value'] 106 | execution = soup.find('input', attrs={'name': 'execution'})['value'] 107 | _eventId = soup.find('input', attrs={'name': '_eventId'})['value'] 108 | rsa = strenc(self.username + self.password + lt, '1', '2', '3') 109 | payload = { 110 | 'rsa': rsa, 111 | 'ul': len(self.username), 112 | 'pl': len(self.password), 113 | 'lt': lt, 114 | 'execution': execution, 115 | '_eventId': _eventId, 116 | } 117 | 118 | return payload 119 | 120 | def is_valid_url(self, url): 121 | reg = r'^http[s]*://.+$' 122 | return re.match(reg, url) 123 | 124 | def _check_sess_vaild(self): 125 | cookies_keys = list(self.session.cookies.get_dict().keys()) 126 | if 'ASP.NET_SessionId' in cookies_keys and 'route' in cookies_keys: 127 | rsp = self.session.get(self.home_url) 128 | if 'Object moved' not in rsp.text: 129 | soup = BeautifulSoup(rsp.text, 'lxml') 130 | try: 131 | self.realname = soup.find('form').find('div', class_='info').find('span', id='xhxm').get_text() 132 | except: 133 | logger.error('获取名字失败') 134 | return False 135 | return True 136 | 137 | return False 138 | 139 | def extract(self): 140 | hdu = { 141 | 'username': self.username, 142 | 'realname': self.realname, 143 | 'session': self.session, 144 | } 145 | return hdu 146 | -------------------------------------------------------------------------------- /crawler_hdu/service.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import time 3 | import urllib.parse 4 | from copy import copy 5 | from io import BytesIO 6 | 7 | from PIL import Image 8 | from bs4 import BeautifulSoup 9 | 10 | from utils.train import get_clf, recognize_img 11 | from utils.util import get_logger, send_email 12 | 13 | logger = get_logger(__name__) 14 | 15 | ELECTIVE_URL = "http://jxgl.hdu.edu.cn/xf_xsqxxxk.aspx" # 通识选修课 16 | PTLLK_URL = "http://jxgl.hdu.edu.cn/xsxk.aspx" # 普通理论课和实验课 17 | VERIFY_CODE_URL = "http://jxgl.hdu.edu.cn/CheckCode.aspx" 18 | DELAY = 5 # 查询延迟时间 19 | RETRY_TIMES = 3 # 重试次数 20 | 21 | 22 | class BaseService: 23 | def __init__(self, hdu, kwargs): 24 | self.username = hdu.get('username') 25 | self.realname = hdu.get('realname') 26 | self.session = hdu.get('session') 27 | self.courses = kwargs.get('courses') 28 | self.clf = get_clf() 29 | self.from_email = kwargs.get('from_email', None) 30 | self.from_email_psw = kwargs.get('from_email_psw', None) 31 | self.to_email = kwargs.get('to_email', None) 32 | self.url = None 33 | self.delay = kwargs.get('delay', DELAY) 34 | self.courses_ok = list() 35 | 36 | def start(self): 37 | pass 38 | 39 | def select_course(self): 40 | pass 41 | 42 | def get_common_form_data(self): 43 | """获取共同需要的form data""" 44 | pass 45 | 46 | def get_form_data(self): 47 | """准备form_data""" 48 | pass 49 | 50 | def get_verify_code(self): 51 | while True: 52 | try: 53 | img = Image.open(BytesIO(self.session.get(VERIFY_CODE_URL).content)) 54 | except: 55 | pass 56 | else: 57 | break 58 | # img.show() 59 | code = recognize_img(img, self.clf) 60 | logger.debug('验证码: %s', code) 61 | return code 62 | 63 | def update_form_data(self, page, form_data): 64 | try: 65 | VIEWSTATE = page.find('input', id='__VIEWSTATE') 66 | EVENTVALIDATION = page.find('input', id='__EVENTVALIDATION') 67 | 68 | form_data['__VIEWSTATE'] = VIEWSTATE.get('value', form_data['__VIEWSTATE']) if VIEWSTATE else form_data[ 69 | '__VIEWSTATE'] 70 | form_data['__EVENTVALIDATION'] = EVENTVALIDATION.get('value', 71 | form_data['__EVENTVALIDATION']) if EVENTVALIDATION else \ 72 | form_data['__EVENTVALIDATION'] 73 | except Exception as e: 74 | logging.exception(e) 75 | raise e 76 | 77 | return form_data 78 | 79 | def print_info(self): 80 | info = list() 81 | for cos in self.courses: 82 | info.append(cos.get('课程名称')) 83 | logger.info("待选课程:%s", info) 84 | 85 | info = list() 86 | for cos in self.courses_ok: 87 | info.append(cos.get('课程名称')) 88 | logger.info("已选课程:%s", info) 89 | 90 | def send_email(self, content): 91 | if self.from_email and self.from_email_psw and self.to_email: 92 | send_email(from_addr=self.from_email, psw=self.from_email_psw, to_addr=self.to_email, content=content) 93 | else: 94 | logger.warning('发送邮件失败,缺少相关数据。') 95 | 96 | 97 | class ElectiveService(BaseService): 98 | """通识选修课程的选课server""" 99 | 100 | def start(self): 101 | """启动抢课""" 102 | logger.info('开始进行通识选修课程的选课...') 103 | params = { 104 | 'xh': self.username, 105 | 'xm': self.realname, 106 | 'gnmkdm': 'N121113', 107 | } 108 | self.url = ELECTIVE_URL + '?{params}'.format(params=urllib.parse.urlencode(params)) 109 | # 通识选修课入口 url = "http://jxgl.hdu.edu.cn/xf_xsqxxxk.aspx?xh=16051717&xm=%u5218%u5174%u7136&gnmkdm=N121113" 110 | 111 | form_data = self.get_form_data() 112 | counts = 0 113 | 114 | while True: 115 | if not self.courses: # 为空 或者 如果全部都为 true,即全部都已经完成 116 | logger.info('恭喜,课程均已选完:)') 117 | break 118 | if counts % 100 == 0: 119 | self.print_info() 120 | logger.info('第 %s 次尝试...', counts) 121 | 122 | counts = counts + 1 123 | time.sleep(self.delay) 124 | 125 | try: 126 | page = self.session.post(self.url, data=form_data) 127 | soup = BeautifulSoup(page.text, 'lxml').find('form') 128 | # print(soup) 129 | form_data = self.update_form_data(soup, form_data) 130 | soup = soup.find('fieldset').find('table', class_='datelist') 131 | found_courses_list = soup.find_all('tr')[1:] 132 | except Exception as e: 133 | # 因为不更新form也可以查询,所以没有成功获取到的话,就重新来一次 134 | # 如果form没有更新成功的话,跳过下面的操作 135 | logging.exception(e) 136 | continue 137 | 138 | # self.delete_courses(form_data, 'DataGrid2$ctl03$ctl00') 139 | # exit(1) 140 | 141 | # 查询 142 | for course_info in found_courses_list: 143 | try: 144 | td_list = course_info.find_all('td') 145 | xuanke_code = td_list[0].find('input')['name'] # 选课代码,用于表单 146 | courses_name = td_list[2].get_text() # 课程名称 147 | courses_code = td_list[3].get_text() # 课程代码 148 | teacher_name = td_list[4].get_text() # 教师名称 149 | courses_time = td_list[5].get_text() # 上课时间 150 | courses_place = td_list[6].get_text() # 上课地点 151 | courses_margin = td_list[11].get_text() # 余量 152 | courses_affiliation = td_list[12].get_text() # 课程归属 153 | courses_nature = td_list[13].get_text() # 课程性质 154 | # print(courses_name) 155 | selected = [] # 要移除的课程 156 | for cos in self.courses: 157 | # TODO: 分析课程冲突 158 | cos_name = cos.get('课程名称', None) 159 | cos_code = cos.get('课程代码', None) 160 | if cos_name == courses_name and cos_code == courses_code: 161 | info = "课程代码: {code},课程名称: {name}, 课程性质: {nature}, 教师名称: {teacher}, 上课时间: {time}".format( 162 | code=courses_name, name=courses_name, nature=courses_nature, teacher=teacher_name, 163 | time=courses_time) 164 | logger.info("发现匹配课程:%s", info) 165 | # 选课成功,发送邮件 166 | # 使用 copy(form_data),为了时选课之后的表单数据依然是查询用的表单,不然会一直当作选课表单来用 167 | if self.select_courses(copy(form_data), xuanke_code, courses_name, courses_code): 168 | logger.info("选课成功:%s", cos) 169 | selected.append(cos) 170 | self.send_email(info) 171 | # 把已经选择的课程移除 172 | for cos in selected: 173 | self.courses.remove(cos) 174 | self.courses_ok.append(cos) 175 | except Exception: 176 | continue 177 | 178 | def get_form_data(self): 179 | counts = 0 180 | VIEWSTATE = None 181 | EVENTVALIDATION = None 182 | hidXNXQ = None 183 | while True: 184 | try: 185 | counts = counts + 1 186 | page = self.session.get(self.url) 187 | soup = BeautifulSoup(page.text, 'lxml') 188 | VIEWSTATE = soup.find('form').find('input', id='__VIEWSTATE')['value'] 189 | EVENTVALIDATION = soup.find('form').find('input', id='__EVENTVALIDATION')['value'] 190 | hidXNXQ = soup.find('form').find('input', id='hidXNXQ')['value'] 191 | except Exception: 192 | if counts >= RETRY_TIMES: 193 | logger.error("出错了!") 194 | exit(1) 195 | else: 196 | if VIEWSTATE and EVENTVALIDATION and hidXNXQ: 197 | break 198 | 199 | form_data = { 200 | '__EVENTTARGET': '', # 退课 201 | '__EVENTARGUMENT': '', 202 | '__LASTFOCUS': '', 203 | '__VIEWSTATE': VIEWSTATE, 204 | '__EVENTVALIDATION': EVENTVALIDATION, 205 | 'ddl_kcxz': '', # 课程性质 '人文经典与人文修养'.encode('gb2312') 206 | 'ddl_ywyl': '有'.encode('gb2312'), # 有无余量 (有,无,空) 207 | 'ddl_kcgs': '', # 课程归属 '通识选修一般课'.encode('gb2312') 208 | 'ddl_xqbs': "1", # 上课校区 209 | 'ddl_sksj': '', # 上课时间 210 | 'TextBox1': '', # 根据课程名称查询 211 | # 'Button1': '提交'.encode('gb2312'), # 选课确定按钮 212 | 'Button2': '确定'.encode('gb2312'), # 课程名称查询提交按钮 213 | 'txtYz': '', # 验证码 214 | 'hidXNXQ': hidXNXQ, # 学年学期 215 | } 216 | 217 | return form_data 218 | 219 | def select_courses(self, data, xuanke_code, courses_name, courses_code): 220 | """选课. Returns : Boolean object 221 | 222 | :param data: 表单数据. 223 | :param xuanke_code: 在网页中表示的选课代码. 224 | :param courses_name: 课程名称. 225 | :param courses_code: 课程代码. 226 | :return: Boolean object 227 | """ 228 | # url = "http://jxgl.hdu.edu.cn/xf_xsqxxxk.aspx?xh=16051717&xm=%u5218%u5174%u7136&gnmkdm=N121113" 229 | 230 | data['txtYz'] = self.get_verify_code() 231 | if 'Button2' in data: 232 | data.pop('Button2') # 删除Button2 233 | data['Button1'] = ' 提交 '.encode('gb2312') 234 | data[xuanke_code] = 'on' 235 | 236 | page = None 237 | exist_courses = None 238 | try: 239 | # TODO: 对比已选课程,在课程里的不选课 240 | page = self.session.post(self.url, data=data) 241 | # 检查是不是已经选 242 | soup = BeautifulSoup(page.text, 'lxml').find('form').find_all('fieldset')[1].find('table', 243 | class_='datelist') 244 | courses_list = soup.find_all('tr')[1:] 245 | exist_courses = [] 246 | for courses in courses_list: 247 | td_list = courses.find_all('td') 248 | course_name = td_list[0].get_text() 249 | teacher_name = td_list[1].get_text() 250 | courses_time = td_list[6].get_text() 251 | courses_place = td_list[7].get_text() 252 | exist_courses.append(course_name) 253 | 254 | # print(courses_name + str(exist_courses)) 255 | except Exception as e: 256 | logger.error('选课发生错误。') 257 | 258 | if page.status_code == 200 and courses_name in exist_courses: 259 | return True 260 | else: 261 | return False 262 | 263 | def delete_courses(self, form_data, code): 264 | buttons = ['Button1', 'Button2', 'Button3', 'Button4', ] 265 | for btn in buttons: 266 | if btn in form_data: 267 | form_data.pop(btn) 268 | form_data['__EVENTTARGET'] = code 269 | form_data['txtYz'] = self.get_verify_code() 270 | 271 | page = self.session.post(self.url, data=form_data) 272 | 273 | def check_courses(self, courses): 274 | """检查和纠正待抢课程""" 275 | self.courses = courses 276 | 277 | def query_courses(self, page, courses): 278 | pass 279 | 280 | 281 | class SportService(BaseService): 282 | """体育课的选课""" 283 | pass 284 | -------------------------------------------------------------------------------- /utils/pyDes.py: -------------------------------------------------------------------------------- 1 | ############################################################################# 2 | # Documentation # 3 | ############################################################################# 4 | 5 | # Author: Todd Whiteman 6 | # Date: 16th March, 2009 7 | # Verion: 2.0.0 8 | # License: MIT 9 | # Homepage: http://twhiteman.netfirms.com/des.html 10 | # 11 | # This is a pure python implementation of the DES encryption algorithm. 12 | # It's pure python to avoid portability issues, since most DES 13 | # implementations are programmed in C (for performance reasons). 14 | # 15 | # Triple DES class is also implemented, utilising the DES base. Triple DES 16 | # is either DES-EDE3 with a 24 byte key, or DES-EDE2 with a 16 byte key. 17 | # 18 | # See the README.txt that should come with this python module for the 19 | # implementation methods used. 20 | # 21 | # Thanks to: 22 | # * David Broadwell for ideas, comments and suggestions. 23 | # * Mario Wolff for pointing out and debugging some triple des CBC errors. 24 | # * Santiago Palladino for providing the PKCS5 padding technique. 25 | # * Shaya for correcting the PAD_PKCS5 triple des CBC errors. 26 | # 27 | """A pure python implementation of the DES and TRIPLE DES encryption algorithms. 28 | 29 | Class initialization 30 | -------------------- 31 | pyDes.des(key, [mode], [IV], [pad], [padmode]) 32 | pyDes.triple_des(key, [mode], [IV], [pad], [padmode]) 33 | 34 | key -> Bytes containing the encryption key. 8 bytes for DES, 16 or 24 bytes 35 | for Triple DES 36 | mode -> Optional argument for encryption type, can be either 37 | pyDes.ECB (Electronic Code Book) or pyDes.CBC (Cypher Block Chaining) 38 | IV -> Optional Initial Value bytes, must be supplied if using CBC mode. 39 | Length must be 8 bytes. 40 | pad -> Optional argument, set the pad character (PAD_NORMAL) to use during 41 | all encrypt/decrpt operations done with this instance. 42 | padmode -> Optional argument, set the padding mode (PAD_NORMAL or PAD_PKCS5) 43 | to use during all encrypt/decrpt operations done with this instance. 44 | 45 | I recommend to use PAD_PKCS5 padding, as then you never need to worry about any 46 | padding issues, as the padding can be removed unambiguously upon decrypting 47 | data that was encrypted using PAD_PKCS5 padmode. 48 | 49 | Common methods 50 | -------------- 51 | encrypt(data, [pad], [padmode]) 52 | decrypt(data, [pad], [padmode]) 53 | 54 | data -> Bytes to be encrypted/decrypted 55 | pad -> Optional argument. Only when using padmode of PAD_NORMAL. For 56 | encryption, adds this characters to the end of the data block when 57 | data is not a multiple of 8 bytes. For decryption, will remove the 58 | trailing characters that match this pad character from the last 8 59 | bytes of the unencrypted data block. 60 | padmode -> Optional argument, set the padding mode, must be one of PAD_NORMAL 61 | or PAD_PKCS5). Defaults to PAD_NORMAL. 62 | 63 | 64 | Example 65 | ------- 66 | from pyDes import * 67 | 68 | data = "Please encrypt my data" 69 | k = des("DESCRYPT", CBC, "\0\0\0\0\0\0\0\0", pad=None, padmode=PAD_PKCS5) 70 | # For Python3, you'll need to use bytes, i.e.: 71 | # data = b"Please encrypt my data" 72 | # k = des(b"DESCRYPT", CBC, b"\0\0\0\0\0\0\0\0", pad=None, padmode=PAD_PKCS5) 73 | d = k.encrypt(data) 74 | print "Encrypted: %r" % d 75 | print "Decrypted: %r" % k.decrypt(d) 76 | assert k.decrypt(d, padmode=PAD_PKCS5) == data 77 | 78 | 79 | See the module source (pyDes.py) for more examples of use. 80 | You can also run the pyDes.py file without and arguments to see a simple test. 81 | 82 | Note: This code was not written for high-end systems needing a fast 83 | implementation, but rather a handy portable solution with small usage. 84 | 85 | """ 86 | 87 | import sys 88 | 89 | # _pythonMajorVersion is used to handle Python2 and Python3 differences. 90 | _pythonMajorVersion = sys.version_info[0] 91 | 92 | # Modes of crypting / cyphering 93 | ECB = 0 94 | CBC = 1 95 | 96 | # Modes of padding 97 | PAD_NORMAL = 1 98 | PAD_PKCS5 = 2 99 | 100 | # PAD_PKCS5: is a method that will unambiguously remove all padding 101 | # characters after decryption, when originally encrypted with 102 | # this padding mode. 103 | # For a good description of the PKCS5 padding technique, see: 104 | # http://www.faqs.org/rfcs/rfc1423.html 105 | 106 | # The base class shared by des and triple des. 107 | class _baseDes(object): 108 | def __init__(self, mode=ECB, IV=None, pad=None, padmode=PAD_NORMAL): 109 | if IV: 110 | IV = self._guardAgainstUnicode(IV) 111 | if pad: 112 | pad = self._guardAgainstUnicode(pad) 113 | self.block_size = 8 114 | # Sanity checking of arguments. 115 | if pad and padmode == PAD_PKCS5: 116 | raise ValueError("Cannot use a pad character with PAD_PKCS5") 117 | if IV and len(IV) != self.block_size: 118 | raise ValueError("Invalid Initial Value (IV), must be a multiple of " + str(self.block_size) + " bytes") 119 | 120 | # Set the passed in variables 121 | self._mode = mode 122 | self._iv = IV 123 | self._padding = pad 124 | self._padmode = padmode 125 | 126 | def getKey(self): 127 | """getKey() -> bytes""" 128 | return self.__key 129 | 130 | def setKey(self, key): 131 | """Will set the crypting key for this object.""" 132 | key = self._guardAgainstUnicode(key) 133 | self.__key = key 134 | 135 | def getMode(self): 136 | """getMode() -> pyDes.ECB or pyDes.CBC""" 137 | return self._mode 138 | 139 | def setMode(self, mode): 140 | """Sets the type of crypting mode, pyDes.ECB or pyDes.CBC""" 141 | self._mode = mode 142 | 143 | def getPadding(self): 144 | """getPadding() -> bytes of length 1. Padding character.""" 145 | return self._padding 146 | 147 | def setPadding(self, pad): 148 | """setPadding() -> bytes of length 1. Padding character.""" 149 | if pad is not None: 150 | pad = self._guardAgainstUnicode(pad) 151 | self._padding = pad 152 | 153 | def getPadMode(self): 154 | """getPadMode() -> pyDes.PAD_NORMAL or pyDes.PAD_PKCS5""" 155 | return self._padmode 156 | 157 | def setPadMode(self, mode): 158 | """Sets the type of padding mode, pyDes.PAD_NORMAL or pyDes.PAD_PKCS5""" 159 | self._padmode = mode 160 | 161 | def getIV(self): 162 | """getIV() -> bytes""" 163 | return self._iv 164 | 165 | def setIV(self, IV): 166 | """Will set the Initial Value, used in conjunction with CBC mode""" 167 | if not IV or len(IV) != self.block_size: 168 | raise ValueError("Invalid Initial Value (IV), must be a multiple of " + str(self.block_size) + " bytes") 169 | IV = self._guardAgainstUnicode(IV) 170 | self._iv = IV 171 | 172 | def _padData(self, data, pad, padmode): 173 | # Pad data depending on the mode 174 | if padmode is None: 175 | # Get the default padding mode. 176 | padmode = self.getPadMode() 177 | if pad and padmode == PAD_PKCS5: 178 | raise ValueError("Cannot use a pad character with PAD_PKCS5") 179 | 180 | if padmode == PAD_NORMAL: 181 | if len(data) % self.block_size == 0: 182 | # No padding required. 183 | return data 184 | 185 | if not pad: 186 | # Get the default padding. 187 | pad = self.getPadding() 188 | if not pad: 189 | raise ValueError("Data must be a multiple of " + str(self.block_size) + " bytes in length. Use padmode=PAD_PKCS5 or set the pad character.") 190 | data += (self.block_size - (len(data) % self.block_size)) * pad 191 | 192 | elif padmode == PAD_PKCS5: 193 | pad_len = 8 - (len(data) % self.block_size) 194 | if _pythonMajorVersion < 3: 195 | data += pad_len * chr(pad_len) 196 | else: 197 | data += bytes([pad_len] * pad_len) 198 | 199 | return data 200 | 201 | def _unpadData(self, data, pad, padmode): 202 | # Unpad data depending on the mode. 203 | if not data: 204 | return data 205 | if pad and padmode == PAD_PKCS5: 206 | raise ValueError("Cannot use a pad character with PAD_PKCS5") 207 | if padmode is None: 208 | # Get the default padding mode. 209 | padmode = self.getPadMode() 210 | 211 | if padmode == PAD_NORMAL: 212 | if not pad: 213 | # Get the default padding. 214 | pad = self.getPadding() 215 | if pad: 216 | data = data[:-self.block_size] + \ 217 | data[-self.block_size:].rstrip(pad) 218 | 219 | elif padmode == PAD_PKCS5: 220 | if _pythonMajorVersion < 3: 221 | pad_len = ord(data[-1]) 222 | else: 223 | pad_len = data[-1] 224 | data = data[:-pad_len] 225 | 226 | return data 227 | 228 | def _guardAgainstUnicode(self, data): 229 | # Only accept byte strings or ascii unicode values, otherwise 230 | # there is no way to correctly decode the data into bytes. 231 | if _pythonMajorVersion < 3: 232 | if isinstance(data, unicode): 233 | raise ValueError("pyDes can only work with bytes, not Unicode strings.") 234 | else: 235 | if isinstance(data, str): 236 | # Only accept ascii unicode values. 237 | try: 238 | return data.encode('ascii') 239 | except UnicodeEncodeError: 240 | pass 241 | raise ValueError("pyDes can only work with encoded strings, not Unicode.") 242 | return data 243 | 244 | ############################################################################# 245 | # DES # 246 | ############################################################################# 247 | class des(_baseDes): 248 | """DES encryption/decrytpion class 249 | 250 | Supports ECB (Electronic Code Book) and CBC (Cypher Block Chaining) modes. 251 | 252 | pyDes.des(key,[mode], [IV]) 253 | 254 | key -> Bytes containing the encryption key, must be exactly 8 bytes 255 | mode -> Optional argument for encryption type, can be either pyDes.ECB 256 | (Electronic Code Book), pyDes.CBC (Cypher Block Chaining) 257 | IV -> Optional Initial Value bytes, must be supplied if using CBC mode. 258 | Must be 8 bytes in length. 259 | pad -> Optional argument, set the pad character (PAD_NORMAL) to use 260 | during all encrypt/decrpt operations done with this instance. 261 | padmode -> Optional argument, set the padding mode (PAD_NORMAL or 262 | PAD_PKCS5) to use during all encrypt/decrpt operations done 263 | with this instance. 264 | """ 265 | 266 | 267 | # Permutation and translation tables for DES 268 | __pc1 = [ 269 | 56, 48, 40, 32, 24, 16, 8, 0, 270 | 57, 49, 41, 33, 25, 17, 9, 1, 271 | 58, 50, 42, 34, 26, 18, 10, 2, 272 | 59, 51, 43, 35, 27, 19, 11, 3, 273 | 60, 52, 44, 36, 28, 20, 12, 4, 274 | 61, 53, 45, 37, 29, 21, 13, 5, 275 | 62, 54, 46, 38, 30, 22, 14, 6 276 | ] 277 | 278 | # number left rotations of pc1 279 | __left_rotations = [ 280 | 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 281 | ] 282 | 283 | # permuted choice key (table 2) 284 | __pc2 = [ 285 | 13, 16, 10, 23, 0, 4, 286 | 2, 27, 14, 5, 20, 9, 287 | 22, 18, 11, 3, 25, 7, 288 | 15, 6, 26, 19, 12, 1, 289 | 40, 51, 30, 36, 46, 54, 290 | 29, 39, 50, 44, 32, 47, 291 | 43, 48, 38, 55, 33, 52, 292 | 45, 41, 49, 35, 28, 31 293 | ] 294 | 295 | # initial permutation IP 296 | __ip = [57, 49, 41, 33, 25, 17, 9, 1, 297 | 59, 51, 43, 35, 27, 19, 11, 3, 298 | 61, 53, 45, 37, 29, 21, 13, 5, 299 | 63, 55, 47, 39, 31, 23, 15, 7, 300 | 56, 48, 40, 32, 24, 16, 8, 0, 301 | 58, 50, 42, 34, 26, 18, 10, 2, 302 | 60, 52, 44, 36, 28, 20, 12, 4, 303 | 62, 54, 46, 38, 30, 22, 14, 6 304 | ] 305 | 306 | # Expansion table for turning 32 bit blocks into 48 bits 307 | __expansion_table = [ 308 | 31, 0, 1, 2, 3, 4, 309 | 3, 4, 5, 6, 7, 8, 310 | 7, 8, 9, 10, 11, 12, 311 | 11, 12, 13, 14, 15, 16, 312 | 15, 16, 17, 18, 19, 20, 313 | 19, 20, 21, 22, 23, 24, 314 | 23, 24, 25, 26, 27, 28, 315 | 27, 28, 29, 30, 31, 0 316 | ] 317 | 318 | # The (in)famous S-boxes 319 | __sbox = [ 320 | # S1 321 | [14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7, 322 | 0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, 323 | 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0, 324 | 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13], 325 | 326 | # S2 327 | [15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10, 328 | 3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5, 329 | 0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, 330 | 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9], 331 | 332 | # S3 333 | [10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, 334 | 13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1, 335 | 13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7, 336 | 1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12], 337 | 338 | # S4 339 | [7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15, 340 | 13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9, 341 | 10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, 342 | 3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14], 343 | 344 | # S5 345 | [2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9, 346 | 14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6, 347 | 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14, 348 | 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3], 349 | 350 | # S6 351 | [12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11, 352 | 10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8, 353 | 9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6, 354 | 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13], 355 | 356 | # S7 357 | [4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1, 358 | 13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6, 359 | 1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2, 360 | 6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12], 361 | 362 | # S8 363 | [13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7, 364 | 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2, 365 | 7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8, 366 | 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11], 367 | ] 368 | 369 | 370 | # 32-bit permutation function P used on the output of the S-boxes 371 | __p = [ 372 | 15, 6, 19, 20, 28, 11, 373 | 27, 16, 0, 14, 22, 25, 374 | 4, 17, 30, 9, 1, 7, 375 | 23,13, 31, 26, 2, 8, 376 | 18, 12, 29, 5, 21, 10, 377 | 3, 24 378 | ] 379 | 380 | # final permutation IP^-1 381 | __fp = [ 382 | 39, 7, 47, 15, 55, 23, 63, 31, 383 | 38, 6, 46, 14, 54, 22, 62, 30, 384 | 37, 5, 45, 13, 53, 21, 61, 29, 385 | 36, 4, 44, 12, 52, 20, 60, 28, 386 | 35, 3, 43, 11, 51, 19, 59, 27, 387 | 34, 2, 42, 10, 50, 18, 58, 26, 388 | 33, 1, 41, 9, 49, 17, 57, 25, 389 | 32, 0, 40, 8, 48, 16, 56, 24 390 | ] 391 | 392 | # Type of crypting being done 393 | ENCRYPT = 0x00 394 | DECRYPT = 0x01 395 | 396 | # Initialisation 397 | def __init__(self, key, mode=ECB, IV=None, pad=None, padmode=PAD_NORMAL): 398 | # Sanity checking of arguments. 399 | if len(key) != 8: 400 | raise ValueError("Invalid DES key size. Key must be exactly 8 bytes long.") 401 | _baseDes.__init__(self, mode, IV, pad, padmode) 402 | self.key_size = 8 403 | 404 | self.L = [] 405 | self.R = [] 406 | self.Kn = [ [0] * 48 ] * 16 # 16 48-bit keys (K1 - K16) 407 | self.final = [] 408 | 409 | self.setKey(key) 410 | 411 | def setKey(self, key): 412 | """Will set the crypting key for this object. Must be 8 bytes.""" 413 | _baseDes.setKey(self, key) 414 | self.__create_sub_keys() 415 | 416 | def __String_to_BitList(self, data): 417 | """Turn the string data, into a list of bits (1, 0)'s""" 418 | if _pythonMajorVersion < 3: 419 | # Turn the strings into integers. Python 3 uses a bytes 420 | # class, which already has this behaviour. 421 | data = [ord(c) for c in data] 422 | l = len(data) * 8 423 | result = [0] * l 424 | pos = 0 425 | for ch in data: 426 | i = 7 427 | while i >= 0: 428 | if ch & (1 << i) != 0: 429 | result[pos] = 1 430 | else: 431 | result[pos] = 0 432 | pos += 1 433 | i -= 1 434 | 435 | return result 436 | 437 | def __BitList_to_String(self, data): 438 | """Turn the list of bits -> data, into a string""" 439 | result = [] 440 | pos = 0 441 | c = 0 442 | while pos < len(data): 443 | c += data[pos] << (7 - (pos % 8)) 444 | if (pos % 8) == 7: 445 | result.append(c) 446 | c = 0 447 | pos += 1 448 | 449 | if _pythonMajorVersion < 3: 450 | return ''.join([ chr(c) for c in result ]) 451 | else: 452 | return bytes(result) 453 | 454 | def __permutate(self, table, block): 455 | """Permutate this block with the specified table""" 456 | return list(map(lambda x: block[x], table)) 457 | 458 | # Transform the secret key, so that it is ready for data processing 459 | # Create the 16 subkeys, K[1] - K[16] 460 | def __create_sub_keys(self): 461 | """Create the 16 subkeys K[1] to K[16] from the given key""" 462 | key = self.__permutate(des.__pc1, self.__String_to_BitList(self.getKey())) 463 | i = 0 464 | # Split into Left and Right sections 465 | self.L = key[:28] 466 | self.R = key[28:] 467 | while i < 16: 468 | j = 0 469 | # Perform circular left shifts 470 | while j < des.__left_rotations[i]: 471 | self.L.append(self.L[0]) 472 | del self.L[0] 473 | 474 | self.R.append(self.R[0]) 475 | del self.R[0] 476 | 477 | j += 1 478 | 479 | # Create one of the 16 subkeys through pc2 permutation 480 | self.Kn[i] = self.__permutate(des.__pc2, self.L + self.R) 481 | 482 | i += 1 483 | 484 | # Main part of the encryption algorithm, the number cruncher :) 485 | def __des_crypt(self, block, crypt_type): 486 | """Crypt the block of data through DES bit-manipulation""" 487 | block = self.__permutate(des.__ip, block) 488 | self.L = block[:32] 489 | self.R = block[32:] 490 | 491 | # Encryption starts from Kn[1] through to Kn[16] 492 | if crypt_type == des.ENCRYPT: 493 | iteration = 0 494 | iteration_adjustment = 1 495 | # Decryption starts from Kn[16] down to Kn[1] 496 | else: 497 | iteration = 15 498 | iteration_adjustment = -1 499 | 500 | i = 0 501 | while i < 16: 502 | # Make a copy of R[i-1], this will later become L[i] 503 | tempR = self.R[:] 504 | 505 | # Permutate R[i - 1] to start creating R[i] 506 | self.R = self.__permutate(des.__expansion_table, self.R) 507 | 508 | # Exclusive or R[i - 1] with K[i], create B[1] to B[8] whilst here 509 | self.R = list(map(lambda x, y: x ^ y, self.R, self.Kn[iteration])) 510 | B = [self.R[:6], self.R[6:12], self.R[12:18], self.R[18:24], self.R[24:30], self.R[30:36], self.R[36:42], self.R[42:]] 511 | # Optimization: Replaced below commented code with above 512 | #j = 0 513 | #B = [] 514 | #while j < len(self.R): 515 | # self.R[j] = self.R[j] ^ self.Kn[iteration][j] 516 | # j += 1 517 | # if j % 6 == 0: 518 | # B.append(self.R[j-6:j]) 519 | 520 | # Permutate B[1] to B[8] using the S-Boxes 521 | j = 0 522 | Bn = [0] * 32 523 | pos = 0 524 | while j < 8: 525 | # Work out the offsets 526 | m = (B[j][0] << 1) + B[j][5] 527 | n = (B[j][1] << 3) + (B[j][2] << 2) + (B[j][3] << 1) + B[j][4] 528 | 529 | # Find the permutation value 530 | v = des.__sbox[j][(m << 4) + n] 531 | 532 | # Turn value into bits, add it to result: Bn 533 | Bn[pos] = (v & 8) >> 3 534 | Bn[pos + 1] = (v & 4) >> 2 535 | Bn[pos + 2] = (v & 2) >> 1 536 | Bn[pos + 3] = v & 1 537 | 538 | pos += 4 539 | j += 1 540 | 541 | # Permutate the concatination of B[1] to B[8] (Bn) 542 | self.R = self.__permutate(des.__p, Bn) 543 | 544 | # Xor with L[i - 1] 545 | self.R = list(map(lambda x, y: x ^ y, self.R, self.L)) 546 | # Optimization: This now replaces the below commented code 547 | #j = 0 548 | #while j < len(self.R): 549 | # self.R[j] = self.R[j] ^ self.L[j] 550 | # j += 1 551 | 552 | # L[i] becomes R[i - 1] 553 | self.L = tempR 554 | 555 | i += 1 556 | iteration += iteration_adjustment 557 | 558 | # Final permutation of R[16]L[16] 559 | self.final = self.__permutate(des.__fp, self.R + self.L) 560 | return self.final 561 | 562 | 563 | # Data to be encrypted/decrypted 564 | def crypt(self, data, crypt_type): 565 | """Crypt the data in blocks, running it through des_crypt()""" 566 | 567 | # Error check the data 568 | if not data: 569 | return '' 570 | if len(data) % self.block_size != 0: 571 | if crypt_type == des.DECRYPT: # Decryption must work on 8 byte blocks 572 | raise ValueError("Invalid data length, data must be a multiple of " + str(self.block_size) + " bytes\n.") 573 | if not self.getPadding(): 574 | raise ValueError("Invalid data length, data must be a multiple of " + str(self.block_size) + " bytes\n. Try setting the optional padding character") 575 | else: 576 | data += (self.block_size - (len(data) % self.block_size)) * self.getPadding() 577 | # print "Len of data: %f" % (len(data) / self.block_size) 578 | 579 | if self.getMode() == CBC: 580 | if self.getIV(): 581 | iv = self.__String_to_BitList(self.getIV()) 582 | else: 583 | raise ValueError("For CBC mode, you must supply the Initial Value (IV) for ciphering") 584 | 585 | # Split the data into blocks, crypting each one seperately 586 | i = 0 587 | dict = {} 588 | result = [] 589 | #cached = 0 590 | #lines = 0 591 | while i < len(data): 592 | # Test code for caching encryption results 593 | #lines += 1 594 | #if dict.has_key(data[i:i+8]): 595 | #print "Cached result for: %s" % data[i:i+8] 596 | # cached += 1 597 | # result.append(dict[data[i:i+8]]) 598 | # i += 8 599 | # continue 600 | 601 | block = self.__String_to_BitList(data[i:i+8]) 602 | 603 | # Xor with IV if using CBC mode 604 | if self.getMode() == CBC: 605 | if crypt_type == des.ENCRYPT: 606 | block = list(map(lambda x, y: x ^ y, block, iv)) 607 | #j = 0 608 | #while j < len(block): 609 | # block[j] = block[j] ^ iv[j] 610 | # j += 1 611 | 612 | processed_block = self.__des_crypt(block, crypt_type) 613 | 614 | if crypt_type == des.DECRYPT: 615 | processed_block = list(map(lambda x, y: x ^ y, processed_block, iv)) 616 | #j = 0 617 | #while j < len(processed_block): 618 | # processed_block[j] = processed_block[j] ^ iv[j] 619 | # j += 1 620 | iv = block 621 | else: 622 | iv = processed_block 623 | else: 624 | processed_block = self.__des_crypt(block, crypt_type) 625 | 626 | 627 | # Add the resulting crypted block to our list 628 | #d = self.__BitList_to_String(processed_block) 629 | #result.append(d) 630 | result.append(self.__BitList_to_String(processed_block)) 631 | #dict[data[i:i+8]] = d 632 | i += 8 633 | 634 | # print "Lines: %d, cached: %d" % (lines, cached) 635 | 636 | # Return the full crypted string 637 | if _pythonMajorVersion < 3: 638 | return ''.join(result) 639 | else: 640 | return bytes.fromhex('').join(result) 641 | 642 | def encrypt(self, data, pad=None, padmode=None): 643 | """encrypt(data, [pad], [padmode]) -> bytes 644 | 645 | data : Bytes to be encrypted 646 | pad : Optional argument for encryption padding. Must only be one byte 647 | padmode : Optional argument for overriding the padding mode. 648 | 649 | The data must be a multiple of 8 bytes and will be encrypted 650 | with the already specified key. Data does not have to be a 651 | multiple of 8 bytes if the padding character is supplied, or 652 | the padmode is set to PAD_PKCS5, as bytes will then added to 653 | ensure the be padded data is a multiple of 8 bytes. 654 | """ 655 | data = self._guardAgainstUnicode(data) 656 | if pad is not None: 657 | pad = self._guardAgainstUnicode(pad) 658 | data = self._padData(data, pad, padmode) 659 | return self.crypt(data, des.ENCRYPT) 660 | 661 | def decrypt(self, data, pad=None, padmode=None): 662 | """decrypt(data, [pad], [padmode]) -> bytes 663 | 664 | data : Bytes to be encrypted 665 | pad : Optional argument for decryption padding. Must only be one byte 666 | padmode : Optional argument for overriding the padding mode. 667 | 668 | The data must be a multiple of 8 bytes and will be decrypted 669 | with the already specified key. In PAD_NORMAL mode, if the 670 | optional padding character is supplied, then the un-encrypted 671 | data will have the padding characters removed from the end of 672 | the bytes. This pad removal only occurs on the last 8 bytes of 673 | the data (last data block). In PAD_PKCS5 mode, the special 674 | padding end markers will be removed from the data after decrypting. 675 | """ 676 | data = self._guardAgainstUnicode(data) 677 | if pad is not None: 678 | pad = self._guardAgainstUnicode(pad) 679 | data = self.crypt(data, des.DECRYPT) 680 | return self._unpadData(data, pad, padmode) 681 | 682 | 683 | 684 | ############################################################################# 685 | # Triple DES # 686 | ############################################################################# 687 | class triple_des(_baseDes): 688 | """Triple DES encryption/decrytpion class 689 | 690 | This algorithm uses the DES-EDE3 (when a 24 byte key is supplied) or 691 | the DES-EDE2 (when a 16 byte key is supplied) encryption methods. 692 | Supports ECB (Electronic Code Book) and CBC (Cypher Block Chaining) modes. 693 | 694 | pyDes.des(key, [mode], [IV]) 695 | 696 | key -> Bytes containing the encryption key, must be either 16 or 697 | 24 bytes long 698 | mode -> Optional argument for encryption type, can be either pyDes.ECB 699 | (Electronic Code Book), pyDes.CBC (Cypher Block Chaining) 700 | IV -> Optional Initial Value bytes, must be supplied if using CBC mode. 701 | Must be 8 bytes in length. 702 | pad -> Optional argument, set the pad character (PAD_NORMAL) to use 703 | during all encrypt/decrpt operations done with this instance. 704 | padmode -> Optional argument, set the padding mode (PAD_NORMAL or 705 | PAD_PKCS5) to use during all encrypt/decrpt operations done 706 | with this instance. 707 | """ 708 | def __init__(self, key, mode=ECB, IV=None, pad=None, padmode=PAD_NORMAL): 709 | _baseDes.__init__(self, mode, IV, pad, padmode) 710 | self.setKey(key) 711 | 712 | def setKey(self, key): 713 | """Will set the crypting key for this object. Either 16 or 24 bytes long.""" 714 | self.key_size = 24 # Use DES-EDE3 mode 715 | if len(key) != self.key_size: 716 | if len(key) == 16: # Use DES-EDE2 mode 717 | self.key_size = 16 718 | else: 719 | raise ValueError("Invalid triple DES key size. Key must be either 16 or 24 bytes long") 720 | if self.getMode() == CBC: 721 | if not self.getIV(): 722 | # Use the first 8 bytes of the key 723 | self._iv = key[:self.block_size] 724 | if len(self.getIV()) != self.block_size: 725 | raise ValueError("Invalid IV, must be 8 bytes in length") 726 | self.__key1 = des(key[:8], self._mode, self._iv, 727 | self._padding, self._padmode) 728 | self.__key2 = des(key[8:16], self._mode, self._iv, 729 | self._padding, self._padmode) 730 | if self.key_size == 16: 731 | self.__key3 = self.__key1 732 | else: 733 | self.__key3 = des(key[16:], self._mode, self._iv, 734 | self._padding, self._padmode) 735 | _baseDes.setKey(self, key) 736 | 737 | # Override setter methods to work on all 3 keys. 738 | 739 | def setMode(self, mode): 740 | """Sets the type of crypting mode, pyDes.ECB or pyDes.CBC""" 741 | _baseDes.setMode(self, mode) 742 | for key in (self.__key1, self.__key2, self.__key3): 743 | key.setMode(mode) 744 | 745 | def setPadding(self, pad): 746 | """setPadding() -> bytes of length 1. Padding character.""" 747 | _baseDes.setPadding(self, pad) 748 | for key in (self.__key1, self.__key2, self.__key3): 749 | key.setPadding(pad) 750 | 751 | def setPadMode(self, mode): 752 | """Sets the type of padding mode, pyDes.PAD_NORMAL or pyDes.PAD_PKCS5""" 753 | _baseDes.setPadMode(self, mode) 754 | for key in (self.__key1, self.__key2, self.__key3): 755 | key.setPadMode(mode) 756 | 757 | def setIV(self, IV): 758 | """Will set the Initial Value, used in conjunction with CBC mode""" 759 | _baseDes.setIV(self, IV) 760 | for key in (self.__key1, self.__key2, self.__key3): 761 | key.setIV(IV) 762 | 763 | def encrypt(self, data, pad=None, padmode=None): 764 | """encrypt(data, [pad], [padmode]) -> bytes 765 | 766 | data : bytes to be encrypted 767 | pad : Optional argument for encryption padding. Must only be one byte 768 | padmode : Optional argument for overriding the padding mode. 769 | 770 | The data must be a multiple of 8 bytes and will be encrypted 771 | with the already specified key. Data does not have to be a 772 | multiple of 8 bytes if the padding character is supplied, or 773 | the padmode is set to PAD_PKCS5, as bytes will then added to 774 | ensure the be padded data is a multiple of 8 bytes. 775 | """ 776 | ENCRYPT = des.ENCRYPT 777 | DECRYPT = des.DECRYPT 778 | data = self._guardAgainstUnicode(data) 779 | if pad is not None: 780 | pad = self._guardAgainstUnicode(pad) 781 | # Pad the data accordingly. 782 | data = self._padData(data, pad, padmode) 783 | if self.getMode() == CBC: 784 | self.__key1.setIV(self.getIV()) 785 | self.__key2.setIV(self.getIV()) 786 | self.__key3.setIV(self.getIV()) 787 | i = 0 788 | result = [] 789 | while i < len(data): 790 | block = self.__key1.crypt(data[i:i+8], ENCRYPT) 791 | block = self.__key2.crypt(block, DECRYPT) 792 | block = self.__key3.crypt(block, ENCRYPT) 793 | self.__key1.setIV(block) 794 | self.__key2.setIV(block) 795 | self.__key3.setIV(block) 796 | result.append(block) 797 | i += 8 798 | if _pythonMajorVersion < 3: 799 | return ''.join(result) 800 | else: 801 | return bytes.fromhex('').join(result) 802 | else: 803 | data = self.__key1.crypt(data, ENCRYPT) 804 | data = self.__key2.crypt(data, DECRYPT) 805 | return self.__key3.crypt(data, ENCRYPT) 806 | 807 | def decrypt(self, data, pad=None, padmode=None): 808 | """decrypt(data, [pad], [padmode]) -> bytes 809 | 810 | data : bytes to be encrypted 811 | pad : Optional argument for decryption padding. Must only be one byte 812 | padmode : Optional argument for overriding the padding mode. 813 | 814 | The data must be a multiple of 8 bytes and will be decrypted 815 | with the already specified key. In PAD_NORMAL mode, if the 816 | optional padding character is supplied, then the un-encrypted 817 | data will have the padding characters removed from the end of 818 | the bytes. This pad removal only occurs on the last 8 bytes of 819 | the data (last data block). In PAD_PKCS5 mode, the special 820 | padding end markers will be removed from the data after 821 | decrypting, no pad character is required for PAD_PKCS5. 822 | """ 823 | ENCRYPT = des.ENCRYPT 824 | DECRYPT = des.DECRYPT 825 | data = self._guardAgainstUnicode(data) 826 | if pad is not None: 827 | pad = self._guardAgainstUnicode(pad) 828 | if self.getMode() == CBC: 829 | self.__key1.setIV(self.getIV()) 830 | self.__key2.setIV(self.getIV()) 831 | self.__key3.setIV(self.getIV()) 832 | i = 0 833 | result = [] 834 | while i < len(data): 835 | iv = data[i:i+8] 836 | block = self.__key3.crypt(iv, DECRYPT) 837 | block = self.__key2.crypt(block, ENCRYPT) 838 | block = self.__key1.crypt(block, DECRYPT) 839 | self.__key1.setIV(iv) 840 | self.__key2.setIV(iv) 841 | self.__key3.setIV(iv) 842 | result.append(block) 843 | i += 8 844 | if _pythonMajorVersion < 3: 845 | data = ''.join(result) 846 | else: 847 | data = bytes.fromhex('').join(result) 848 | else: 849 | data = self.__key3.crypt(data, DECRYPT) 850 | data = self.__key2.crypt(data, ENCRYPT) 851 | data = self.__key1.crypt(data, DECRYPT) 852 | return self._unpadData(data, pad, padmode) 853 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------