Giter Club home page Giter Club logo

claim-free-steam-packages's People

Contributors

4-floss-free-libre-open-source-software avatar actions-user avatar cwilliams5 avatar deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar luois45 avatar woctezuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

claim-free-steam-packages's Issues

Ability to filter packages to only include games/DLC

Describe the solution you'd like
Ideally, a way to select packages (e.g., to avoid game trailers and only pick games/DLC) if at all possible

Additional context
I apologize in advance if this already has that functionality, or if trailers/non-games are already filtered out. Thank you for your work.

Use Steam Profile All Games to Skip Already Owned

Is your feature request related to a problem? Please describe.
It's imperfect that the script has to !addlicense for items I already own, is there a better way?

Describe the solution you'd like
I can see the the script builds out a activated_packages.txt for packages it knows are activated. Can't this list be prefilled by scrapping http://www.steamcommunity.com/id/XXX/games/?tab=all and taking any appIDs from there as already owned?

Describe alternatives you've considered
N/A

Additional context
For someone who has already used other methods to add packages and has a lot, the first run of this program is a super long time !addlicense for 10k+ items I already have. Could be mostly skipped by prefiltering owned items via steam profile.

issue with activated_packages.txt

Describe the bug
program not reading total of activated_packages.txt

ive gotten a whole list of packages running

var elements = document.querySelectorAll(
"div[class='free_license_remove_link'] > a"
);
var games = "";
for (let i = 0; i < elements.length; i++) {
var game = elements[i].href;
game = game.match(/([1-9])\w+/g)[0];
games += game + ",";
}
console.log(games);

on my licenses and got

236886,637666,83943,534095,607445,665187,443503,50456,649171,113728,336214,224914,139530,93651,718194,172595,311187,398272,401735,118517,631112,107023,650675,587081,601402,587121,555137,422359,542545,534629,214228,43313,365140,482492,461327,20821,461077,20810,628481,659432,218169,293719,670258,639464,268718,509153,346563,608059,124544,54610,192888,124367,520425,533632,209449,20816,631001,696320,592148,480139,69497,166006,490503,632080,594834,381590,562944,466332,529346,265881,220355,475901,462493,261068,707197,101304,633654,672279,617645,554208,503567,654901,289227,123447,337187,664035,329848,503865,381406,486429,563041,520650,602259,287199,506773,580874,326455,508472,133037,371233,687217,254128,493698,586115,679912,534945,638043,202362,488848,21346,498433,688910,190659,388895,488074,197581,110393,407931,576809,124827,594377,653691,121032,703941,515767,540131,702091,91906,401357,619240,20902,503769,509295,118641,452179,21031,363933,688247,339354,346620,613159,551155,78224,60282,381928,630057,599768,606118,565248,432309,126533,475288,299091,593344,445899,64514,165919,442185,576612,354096,669696,133607,584782,492306,539886,165994,599644,684348,631337,149189,520539,427873,191447,713487,533349,223760,137028,351233,240202,537077,647596,338911,387119,609237,200541,145854,682572,78252,98633,650114,607927,612527,262283,704518,606551,347934,432664,510860,704796,21415,525839,221088,574208,399539,404262,368395,386877,461892,433443,125058,90118,636573,507854,582468,531375,551261,358538,20918,486381,494561,610609,609302,242175,489519,406831,525893,313382,266647,390898,363258,609644,524585,225823,484412,381896,386980,659381,464747,402671,506869,545127,462103,454279,684107,160793,357454,280744,434331,652481,590664,478382,216184,21043,670170,460322,623170,437951,75440,638593,679905,662558,660294,216818,359276,284745,462310,517598,691605,652817,447302,126178,103327,20846,500489,91765,662159,658186,178734,413514,619170,21447,126028,673417,671990,448101,124553,693165,374737,557511,436123,636089,458113,202416,600600,697304,180990,707820,648389,531035,275468,672512,543301,590748,624470,121059,190808,571236,453595,289534,467088,526025,458844,105231,291484,493459,327911,504211,685825,611799,671262,21305,498315,684631,705458,45199,688238,31606,617089,609682,556612,705727,492189,506194,692030,368593,674732,721231,530515,492199,639337,521250,614826,137317,500389,467922,499835,398423,451426,667696,316946,418322,236981,442287,615603,674052,442328,21364,398516,644322,171532,562891,655144,607382,361221,331096,610855,475027,398926,319692,571176,633165,681312,542615,437421,223481,280208,490641,458137,462280,433495,73529,463412,302264,320657,328063,21395,684683,137656,21341,686141,449809,271761,665047,611413,712245,191219,418439,84308,146362,237314,102678,571280,317997,504910,680609,579441,678119,89490,349053,337128,285028,20928,368235,499586,559468,508857,164592,397386,682830,217544,475536,444720,185027,661222,309830,421935,330298,689043,44908,611674,466681,607534,420499,499560,450712,489136,261400,627495,213658,686117,539787,616905,51745,363943,284209,623885,440327,49467,371229,715070,364439,642948,573973,409176,621667,162804,506515,163217,128461,542618,603561,21271,216748,458200,223506,341765,307821,680687,612605,375165,600836,226399,457596,177469,625535,563090,286354,582096,480146,452132,676487,21420,667892,376925,441742,484758,650167,556667,552695,684327,133635,336832,85649,585683,301500,515336,100642,268077,250091,618219,183211,21292,386198,299146,460424,410069,242834,52178,331024,368457,247487,548755,410081,494989,651558,492431,21040,640555,388167,133629,714901,633675,387067,675976,215806,124505,699488,461022,166532,433835,218975,465781,484784,168760,537000,549935,692146,588441,527268,117431,21087,94624,490040,340598,614680,76958,371433,444201,133014,279703,477766,112136,449157,133653,439741,518994,511622,435838,354727,357298,694864,657790,700103,480016,75379,550546,253347,436721,664889,357207,463447,359917,352508,561901,191688,293660,452271,579225,21491,542156,68984,593609,384176,538841,533287,424813,628374,158324,544314,635171,554988,641480,20914,103701,205987,189740,636382,267198,159743,633121,197343,531626,523840,165733,456546,679685,493746,571786,664126,198692,600141,115687,36515,136435,677540,562962,583775,59963,564386,169561,509650,506794,688904,325927,301933,580488,53153,74533,20983,507819,503744,141447,449841,592721,527991,289675,318995,542372,395332,690102,646614,49944,130643,524591,72399,475855,504131,492866,337906,277985,308262,687694,500923,322354,21063,583085,215265,159078,461600,542500,20960,646826,91790,652780,689195,621845,665562,392981,20798,406807,320881,285010,149519,558008,429320,460899,526265,20712,635861,612924,687430,309499,680059,391105,592734,132533,197439,550180,151218,392621,73851,281533,462803,115480,679591,481100,582231,562842,297458,590347,502712,243477,666252,711300,593477,126052,604717,585590,407043,645413,535528,549753,656937,405346,20791,395936,304946,264574,368451,263645,189133,118629,21055,660524,239591,572877,682493,93809,593529,700389,430874,504472,702277,141853,114286,514938,656336,698929,517310,373281,134232,432708,618407,450232,291870,86218,362212,695659,459183,633515,682596,460210,430643,571003,421635,465944,112728,607127,557619,610944,492927,674826,605886,426367,607676,208748,523899,500920,21284,404746,267665,458776,461908,490288,591824,433089,282471,307255,631706,655973,609669,93558,404656,544697,206984,181484,670972,651254,688812,245040,681889,604503,561423,724603,412518,120729,583580,683947,462506,525562,578297,484138,184208,643609,634333,621861,262759,21371,148236,486323,683152,364582,389121,538854,585936,422826,71422,21095,391753,546654,676024,262648,171166,519070,515520,441728,192650,595083,328634,708571,202999,439142,485105,214514,95418,364277,246925,708288,529991,492482,718151,637708,125218,200655,272136,385308,81771,21256,127267,618294,465761,652720,505053,20675,542758,654100,674738,243224,394942,693014,354442,94927,21247,461490,550256,687209,520109,395461,617366,584835,493951,94576,239820,183300,361961,687512,552144,122340,415321,658176,683862,418278,181466,336949,577006,590989,227601,194352,134142,614253,306958,392500,711784,498081,497988,52583,628127,470347,97446,600532,587589,275300,21337,485904,469351,454668,100102,678192,493319,396214,375162,455044,77007,131474,599642,560783,239779,475137,538474,451222,475208,344319,310319,687150,644354,21259,666610,21481,157210,478140,625937,586110,359817,725071,377090,326801,226077,589366,271013,521124,406657,48765,21171,83946,638526,424481,282921,362263,124376,589123,664242,576922,185493,314025,546058,272513,89107,48848,614087,639584,297485,183545,617679,689615,318046,327129,585230,63533,441701,673951,460305,562372,596137,401902,271275,128128,140243,554055,715243,273080,590651,449111,20796,486468,553216,242941,531613,569986,51800,685947,196652,95054,210642,20932,128874,650918,247064,20742,491746,497222,277582,704861,139539,20981,614425,234242,508820,590151,494077,585528,689211,457815,21385,182489,331402,236847,565594,656480,477041,140050,462929,422065,399850,21424,709297,187618,666289,382252,643383,450463,634232,529376,503840,182391,341857,507788,312320,318929,301962,341864,48922,116711,391518,261348,360108,434015,660387,629732,621521,372944,468974,360039,660285,222307,114379,487100,363541,625609,569520,517272,366260,512801,143324,566392,650334,307827,358696,414605,230449,54284,285358,642532,406128,464661,327082,245191,692227,607074,460605,428436,463236,385743,402728,484000,307168,693506,281862,542056,415850,678504,688677,364606,139536,21200,443648,168464,151515,379495,181194,121433,191450,155099,690732,136444,618202,572577,20842,439047,643430,380359,690050,235204,593725,103835,628586,489078,678731,300828,455760,708210,530524,631900,613178,353904,146134,154703,392155,199190,368894,322327,525814,385005,503570,318518,44899,411061,635547,641939,618817,402674,585302,282097,705381,20750,560305,586768,632764,406882,243961,213094,689179,702721,434628,490452,293656,101246,453067,685706,131612,424001,436896,587877,272341,21038,526810,533747,610767,452719,682935,687352,635746,455357,503995,567111,671942,649838,657644,600345,531019,632574,560227,602305,251534,590927,680830,57369,611153,466254,135235,311245,181490,423476,624836,64820,80871,532238,600413,471222,396275,453000,629843,565821,112566,307137,643641,377246,576130,122355,21466,401353,487232,136423,395973,364931,684753,669940,350309,336869,613175,496167,611279,21312,430220,715682,142797,62582,676985,104138,496630,650484,514786,435818,139504,676354,21207,466596,688055,624018,676040,54637,72184,139554,704092,284547,379253,686887,644802,479978,211867,415927,674610,351693,452789,267423,372915,300605,707650,252776,307818,419401,190719,688203,467810,633098,293082,122319,403712,371372,554031,92375,343505,583261,274553,378903,488494,357926,623428,702981,561647,145028,587191,533578,454818,171969,579529,165381,602089,134283,376461,566075,635168,599809,242484,458668,698129,506647,458621,522574,426107,264059,293403,508403,203981,540549,101443,700003,532492,157812,395261,490171,684942,713836,681011,673536,213585,377439,276065,605663,460390,132190,174952,532284,506200,617126,602199,478744,683332,378229,509210,437211,159069,20768,605558,60481,58745,531995,554242,418428,153201,119435,128125,431578,451654,722964,462720,82928,662406,602001,249754,509525,490585,426862,90037,172138,715892,251399,623680,634155,174958,290485,576123,592312,307037,387149,688324,448333,421290,351050,247866,514308,422908,687821,159656,243797,109033,598809,688350,506594,656382,224086,629406,73163,263178,489016,21243,184736,512118,681106,661027,434793,112420,398510,261890,121143,331100,683163,306919,528224,459277,150439,320726,587055,275466,261907,615212,269217,624541,326607,612157,438195,125185,501922,634000,581656,222829,656353,678956,687633,285718,316430,556302,160997,383931,166639,616924,394595,152520,127503,509579,131609,680023,639787,391194,615733,75648,583143,551264,444218,506546,500142,267845,307753,611074,557092,164516,536906,564275,50705,693727,307809,92845,475226,721215,532267,262904,560011,450858,650414,581302,616918,523999,661882,75484,642176,620952,365066,289493,494646,704525,262997,662954,477380,61841,322235,562374,654446,483590,544698,344370,76274,321723,562095,318171,203546,225698,21090,221000,285724,358268,147894,219326,649686,96776,504191,513240,616678,442044,62747,529644,465586,563143,546109,417729,578405,199033,115756,78408,530246,635264,455225,120874,468332,649228,685344,709565,20907,445697,363373,490725,184251,599021,238221,563055,665262,459919,506203,581643,306151,104843,714229,225429,445189,189073,21044,351940,151400,701588,684281,714957,653548,697591,517919,506713,49808,572093,20759,306272,632197,681115,434456,591260,570555,629295,389517,451228,683532,453070,311303,302288,177279,627395,564573,397149,166572,587970,189614,513121,590406,277458,141039,199166,364239,64316,234501,382375,610661,20996,691953,511500,553830,68338,715364,484586,500361,346458,437695,514216,526544,549965,235056,491393,180739,562710,243248,306522,410579,231020,156463,682699,662186,308375,350905,579554,323015,537896,498145,489399,462768,449263,21000,611140,352843,103954,661969,579545,462047,263632,526378,643082,549091,398797,624586,618635,456403,714845,214491,717397,345499,374613,426930,460581,541453,652091,454754,540743,603863,303996,591530,295129,527235,341245,617515,714477,337282,409929,626218,448815,21270,406476,191152,70444,582978,139885,681204,103919,512336,368480,20855,611399,653560,330656,432865,21169,439053,434193,66366,557794,606082,335265,165375,131180,694495,709705,448477,387074,241181,435727,68530,634943,693708,354167,623725,453937,543432,523977,194190,611410,699265,324422,190873,458498,208341,348488,659977,541931,20876,401183,639437,644206,442919,264295,654667,504734,218533,425038,503974,516804,355088,654744,275600,551054,625652,517900,143281,98853,48558,21145,150424,685362,208605,696227,532569,340216,352919,159650,131795,440532,633631,553305,448136,163910,671069,52916,562881,123623,657353,682805,499843,362534,377165,232773,493994,554692,108156,428807,646540,386525,598008,575420,533982,160826,433808,640745,414061,512444,606609,262560,20801,346669,504297,400592,328742,189948,269285,675040,437190,648568,110651,198060,119447,187621,718031,20997,661240,431488,320329,517406,677771,439990,656217,674552,639119,504722,570658,263408,86661,622012,490491,676400,586958,277251,507038,120214,377377,449691,382541,646949,445094,103335,432361,321173,622000,307210,239484,673941,622577,512602,330558,265638,521559,445514,588895,129555,574940,492419,176960,297438,508141,668894,465835,723670,463268,505130,247604,287445,630304,108812,519906,61884,210014,523188,67759,620467,532781,277513,356939,374103,120817,661612,292656,132193,588329,506083,300200,72635,20787,436055,681752,168898,309237,82994,492507,668440,457380,685549,425020,358664,84435,89987,615469,204538,166246,556813,463904,532585,136373,443626,627415,132387,441608,457315,412705,382557,327880,315399,217793,544526,263831,99303,536092,637590,490557,687469,493858,628225,371144,400544,539534,435529,443344,348532,20830,602238,454030,357038,631856,441083,413488,704764,237514,163904,599661,254740,418489,539210,468959,526317,419775,381348,238594,531200,365912,341233,419144,241273,647577,665630,618248,566008,524982,662044,714877,308794,381220,538850,486734,316448,565462,345011,577121,705226,57106,442546,122370,687263,102339,231745,471443,575003,599547,252013,483197,223356,300160,568370,190039,589219,457493,460748,45585,342542,21488,632602,571912,630758,136426,619725,487596,633108,113704,537086,494449,588898,504671,668298,148569,716603,72328,539766,594612,605620,663739,690072,581985,320223,401766,277378,632480,692941,96252,79113,437409,134879,21068,328046,345249,155420,664516,92902,492940,676565,396641,430980,495141,40766,597494,655127,201102,452407,397919,535375,645261,428823,460993,285373,619779,149347,535232,691135,487750,93907,629079,681332,466311,241032,522498,628529,340517,21439,192477,663416,204557,683015,353063,224839,437328,94870,420154,656959,284751,642655,566021,517978,425047,119277,283775,676130,124739,442617,96141,166346,176451,170911,591926,98907,628133,359403,192393,21372,460990,210873,516397,343303,555933,289560,515884,646410,548624,637539,463913,491442,625693,330314,578417,588561,461880,21258,706453,313143,244592,219225,213820,668611,624627,156341,560801,180222,346048,525764,147667,463090,490484,399273,545963,370313,445289,628252,713651,297469,559946,100798,533191,371610,673542,476545,519399,55243,220089,366796,222495,416863,251136,719532,20679,129780,691053,683342,442868,332861,217147,275217,444056,522636,431422,702012,333845,56565,90631,202289,63025,148674,286017,364422,47182,425712,443307,390718,452501,636348,305668,514122,351734,318528,65879,188573,504833,519758,131241,700162,357032,714734,557268,650587,620409,274107,478122,225746,509231,306207,618734,531013,713448,661256,63139,352745,309345,597056,715746,458684,365507,667737,21066,630876,509498,574914,388049,545225,410775,544580,410257,383678,481632,352772,479909,663978,135346,60061,463224,171189,92954,604992,353745,20765,511298,656769,682808,355008,374231,686839,307131,123539,604906,305313,82858,21155,341501,21067,72429,387234,249319,483743,466763,585213,495400,253709,649099,428714,230101,504047,676994,21062,504794,584237,136376,211901,189725,433212,461371,590154,277732,433743,673372,172404,244330,670034,445031,679691,43996,570630,134145,678730,684190,342885,477709,136090,284875,491259,614354,527902,503641,124523,451552,188178,473808,616039,21445,261200,709211,247180,600335,358315,541444,611911,499521,717189,491470,218473,53643,74755,664996,287392,509694,424944,561670,72264,643223,522297,21146,620268,218809,679155,402801,603946,579509,195155,720269,723215,262689,98762,48307,629787,138412,291134,489529,451508,292789,307378,658251,543709,719484,99489,670459,454890,590573,632615,482288,670903,346026,409918,133379,439734,585417,185376,430753,542552,21458,531310,716767,451159,683050,524253,429584,582319,559754,516944,568533,461993,637007,170855,498639,449360,708494,65110,636039,632053,303191,340431,170788,595172,656178,712552,511102,360787,623150,706278,704087,576858,502872,709469,443766,135115,357938,644713,625251,261312,683170,283532,417213,336331,333932,336350,64216,119704,362233,542470,606583,684958,507404,493765,104753,376971,613064,680344,210598,540811,457567,628181,593923,446132,511532,431981,496312,385357,693806,665374,380452,519093,711225,457327,452161,255064,205670,21053,21408,147930,98518,491904,429915,229691,91243,20674,672114,21381,629425,232200,425622,698746,343701,610581,334257,660425,198192,224188,148843,510512,135502,205076,590377,379240,462178,666978,414732,683139,314408,228361,414803,670085,556640,495234,33333,477920,541821,495138,356498,485864,686532,112212,593642,271851,587854,504362,20924,214472,675274,236880,200928,516715,380259,298381,176734,549193,655311,611080,243018,376140,21052,181505,653473,332470,475264,516245,568537,567428,392037,208367,485504,287382,410121,127225,581448,225564,590202,531365,316959,353787,64579,174448,675685,500458,486528,326226,179318,369705,634165,378164,442197,612092,102040,561791,660403,294607,476239,298740,700702,589544,431626,663731,330413,627674,116016,55339,95036,566125,719300,683274,21448,365476,680659,302957,403465,20706,220119,676943,696058,582981,505759,548927,663468,506007,717010,122346,59389,531396,317976,20715,160046,484654,678693,710455,640985,219891,504106,675773,551691,348845,560089,364859,20684,675402,612484,669859,276100,539028,522513,503449,464105,219193,418535,463206,333173,536972,697257,167436,325676,349678,400948,590424,231055,443020,697235,598583,335132,265594,117829,105970,188905,615474,716268,191307,432474,503983,682343,549003,628297,619246,705628,218749,519903,302006,452332,326789,695784,141536,461084,180395,74758,420494,599675,20731,653416,505862,562929,276691,424039,441947,551038,50160,174549,712721,354776,406903,340588,480618,601532,686059,485976,338994,386450,270352,21276,101359,345277,529370,362215,498711,470264,589710,43953,214809,619507,548941,20849,236289,584537,606036,318314,469316,157522,316147,460941,359030,422662,221597,126523,20944,701269,136476,341606,129684,543012,21019,684595,322320,708275,624670,311790,693287,203137,598495,360089,670765,510753,445738,203028,686878,21162,324077,710207,502015,245015,607457,680530,182912,233918,552986,506023,492667,215993,136965,195705,268615,533317,685144,197433,613094,514227,507935,569313,395715,266861,637107,527854,681147,703298,49026,458262,499846,281571,635326,364597,481809,428932,519145,427151,484930,630907,54587,112290,503531,311995,389928,395630,371676,551742,718808,216288,278624,110039,636335,136346,20836,661008,20955,450908,523930,658695,544508,487388,387439,479127,553471,613617,604013,669533,359536,21105,21029,657264,239140,250042,306461,714331,325317,89990,262453,171634,510660,147095,483137,349373,349914,537999,410101,617389,378778,136432,675408,524041,399024,30123,154493,515344,561608,436557,632933,679065,528952,635388,342174,238783,211571,506463,711231,482512,212855,688368,509708,410954,487517,615564,661605,145830,396169,659674,462903,136813,35650,21060,51449,333541,571256,317396,423421,631223,463444,697647,575181,56147,618051,557348,98731,202243,360381,349697,262039,275519,20698,479906,414148,628876,557287,537739,308657,645556,610516,488119,485010,720555,81951,627239,327061,594837,124502,211446,510222,130286,379758,569210,521700,429315,685970,20871,520861,150964,122367,164990,435081,631343,628239,371300,354958,136473,77521,691313,62298,450933,486619,613058,388700,517008,113983,455984,113102,696198,407498,666026,665411,565709,114034,428415,661815,21244,604638,68160,630211,644257,308807,539736,514140,320178,427166,653049,45159,698820,669097,472684,431138,551554,292865,427539,686338,21181,20760,437231,570673,508606,136968,247197,319786,67111,137291,677408,286011,584907,618632,239270,248847,683322,420630,147472,44778,667005,368536,426174,678982,226038,168498,359765,21478,578920,498037,454944,584278,607965,692925,324145,231049,284276,146542,612689,502506,377051,642348,613720,237475,97621,692081,98759,605122,644762,236865,67959,226174,530894,525617,388300,436576,475390,635143,633227,586701,76373,513776,137602,20993,404237,464009,370058,627812,191754,556742,361519,170854,131216,385590,689630,422058,268463,558587,486939,667349,698569,484192,206437,381824,367877,352914,414826,21139,275382,445637,129675,76556,404158,416947,513707,469720,712621,576652,693637,269144,679622,517938,174746,279796,590972,648181,514724,635839,562816,326968,649734,682504,310129,129660,354428,281884,243266,680112,632690,341771,540721,544253,137304,370151,92572,20850,381112,491402,534338,316063,713325,144104,681722,96744,694058,619534,515149,392551,142637,235707,562719,501436,358923,142816,457883,571866,20690,21086,370307,579739,447586,304943,703354,432897,654726,602165,285297,554417,656699,498746,588279,493198,216134,213697,221009,170797,486121,264709,621117,513260,439338,357666,252232,156298,448571,194322,688206,199313,344764,533923,464258,99786,582831,490203,193046,54244,196029,515734,479298,525308,448111,480682,498611,524341,689252,444049,247074,660555,685859,512247,413713,442418,21048,502951,403339,501657,130690,474927,585358,341697,284839,632273,632455,470173,110621,697357,408194,639193,204776,455237,611041,447907,115153,243017,619290,168768,155986,675526,495142,591356,430456,194232,60764,637721,413147,367811,436397,255897,309503,519419,537700,462410,571223,170124,153054,261533,670900,358544,21397,655732,651356,218668,148486,510085,429192,95425,330107,337765,631703,343294,20829,424696,126968,267308,20680,472357,115052,467041,461935,73627,100690,646516,179337,548987,398785,503992,682833,141945,271598,556954,659385,90217,289969,561917,441969,271787,588833,682507,489421,658950,591910,503418,559626,575551,427400,477810,433511,163778,549196,447816,569345,567316,69320,360686,21480,636001,694160,47487,454934,313599,637132,340914,366063,355940,687833,327370,429305,346762,99355,433218,427774,99523,282253,492256,678990,586827,651968,20672,298100,203046,174643,80594,21449,208501,289520,667712,666154,286140,265516,20704,713565,432023,475599,582166,330145,310902,498234,220980,502313,637881,554742,460036,468791,74164,705580,340475,555070,675523,713619,169924,353427,237563,513555,277091,35848,686627,501819,372253,60985,191459,455595,681778,485068,230486,459028,381480,559999,398031,457892,121499,102142,383633,383450,483952,588985,257413,627802,97466,684225,152128,410806,166651,672629,675270,589927,473817,524187,360422,427901,509564,515132,593606,223329,393101,359753,544586,501928,202968,623476,234427,502538,160005,593286,307645,303264,140653,695895,364845,20811,624738,320629,172563,452067,252758,665814,434800,250275,287246,362447,249874,543393,456227,537985,223740,323851,579078,49768,488649,226531,305899,443194,345457,568283,308136,419966,355995,424854,520480,431320,126508,483462,20819,492279,591373,564904,458853,114866,720469,502119,102196,414100,519781,601363,358552,504712,125741,273116,88859,401875,497459,440115,448480,368186,445795,66507,119286,348144,539279,141136,664685,310836,418567,620430,641828,719823,704655,707243,651994,668120,168824,625673,704552,635562,391124,306631,321909,382837,643102,20937,466241,83836,679919,50080,21416,350061,20900,543720,583725,271376,375910,493300,685059,392728,497237,657671,124855,213917,486322,636406,84262,482311,504294,588292,583627,183551,105607,689007,498774,551067,706066,550320,565267,601846,474383,429407,532956,261783,645926,395697,211620,630969,484794,186671,598476,634689,235180,313370,397448,611996,629162,709191,277398,112176,44008,196932,661574,552410,492045,493456,267716,595700,405735,21314,240382,447654,442962,371054,657240,487666,446305,304757,707232,277804,601642,65638,674041,651657,651626,631753,435259,215027,693715,521878,224491,479942,479948,479945,447187,446661,401909,21310,201754,359599,138584,21462,140455,62505,198068,138639,142595,39863,62665,92286,139432,225377,88108,21357,140626,78713,133966,68255,21350,55353,21335,44226,

and put in the activated_packages.txt file and ran the program and it says Out of 18021 known free packages, 18001 are not already activated in your account. Beginning activation.

Expected behavior
should be saying a lot lower number by like 2000+ instead of just 20

Screenshots

Desktop (please complete the following information):

  • OS: windows 11
  • Browser chrome
  • Version 1.4.1

Unbounded Log File Growth

Describe the bug
Logging file grows unbounded.

To Reproduce
Steps to reproduce the behavior:

  1. Run the script.
  2. Script loops forever.
  3. Logfile grows forever.

Expected behavior
I actually like the script looping (more on that in future feature request), but I don't expect my disk to fill up forever with a log file. Not sure what the best solution is, but a simple one would be to cap the log file at a certain size, or only keep one loops worth of data. Just something to stop infinite growth.

Screenshots
After just 5 minute or so of looping. That would be 4GB of data a day if left alone.
Iimage

Desktop (please complete the following information):

  • Windows
  • Latest .py direct

Additional context
N/A

Wait X Time Before Looping Attempts or Don't Loop

Is your feature request related to a problem? Please describe.
Currently the script loops on completion. If you are up to data on packages this means it is looping every 30 seconds. That means:

  • Scraping the github packages file every 30 seconds
  • Always using a full processing core of my machine to endlessly process
  • A whole bunch of (unnecessary) I/O disk operations while processing (separate bug/enhancement submitted in #5 and #9)

Describe the solution you'd like
Ideally I want to run this script unattended and keep my licenses up to date. One way to obtain this would for the script to sleep in between attempts, for example for 12 hours. The time could even be configurable. That way I could just run this in a docker on the same Raspberry Pi already running ASF and just have my licenses always updated.

Describe alternatives you've considered
Another option would be to NOT loop forever, just cleanly exit. Then a linux cron job or windows scheduled task could be used to run the program on the users desired schedule.

Additional context
I hacked this in myself by prefixing the line 108 (return activatedPackage) with:

print('Waiting 12 Hours to Check for New Licenses')
time.sleep(43200)

Works great, but not ideal to have to redo every time you update.

Add documentation on how to run the Docker image

Is your feature request related to a problem? Please describe.
There is no explanation on how to run the docker-compose.yml file or the Docker image.
Docker image: https://github.com/Luois45/claim-free-steam-packages/pkgs/container/claim-free-steam-packages
docker-compose.yml: https://github.com/Luois45/claim-free-steam-packages/blob/main/docker-compose.yml

Describe the solution you'd like
Add a documentation on how to run the image in Docker.

Describe alternatives you've considered
N/A

Additional context
As someone who does like to run applications inside Docker for easier management, I do think that such an explanation it would be really useful for people which aren't that familiar with docker

Workflow run for updating the package list fails consistently

The package list is not getting updated due to a failure in the workflow as informed about in #26

Originally posted by dafunks March 20, 2022

Downloaded repo package list with 1 free packages.
Out of 1 known free packages, all are already activated. Skipping activation phase.
Waiting 2 hours to check for new free packages.

For some reason this is happening. There is no way I have finished as yesterday I had only 2% done and had only activated around 500. It seems something has gone wrong.

Super Slow?

Describe the bug
Look's like something is wrong with speed.

To Reproduce
Steps to reproduce the behavior:

  1. Run the program.
  2. Items/Sec is very high.
  3. Log is showing a bunch of odd repeats.

Expected behavior
Be able to add 50 licenses per hour as the Steam API allows. Perhaps even faster if ASF lets us know the product is already owned.

Screenshots
image

Desktop (please complete the following information):

  • Windows 10

Additional context
In the log I can see items repeating over and over. Even without repeating it would be slow, but this is slowing it way further.

Also ASF !addlicense accepts a comma seperated list, wouldn't that be faster to do 50 at a time that way? Although maybe you don't get back enough in the response to know what to log/retry, I don't know.

Logging data:
`12:47:14,989 urbanGUI DEBUG Found config file
12:47:14,989 asyncio DEBUG Using proactor: IocpProactor
12:47:15,550 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): raw.githubusercontent.com:443
12:47:15,892 urllib3.connectionpool DEBUG https://raw.githubusercontent.com:443 "GET /Luois45/claim-free-steam-packages/update-package_list/package_list.txt HTTP/1.1" 200 42184
12:47:15,921 urbanGUI DEBUG
Package found in activated_packages
12:47:15,922 urbanGUI DEBUG
Package not found in activated_packages
12:47:16,106 urbanGUI INFO
ID: app/1446570 | Status: OK | Items: app/1446570

12:48:46,109 urbanGUI DEBUG
Package not found in activated_packages
12:48:46,255 urbanGUI INFO
ID: app/1446670 | Status: OK | Items: app/1446670

12:50:16,269 urbanGUI DEBUG
Package not found in activated_packages
12:50:16,451 urbanGUI INFO
ID: app/1446720 | Status: OK | Items: app/1446720

12:51:46,459 urbanGUI DEBUG
Package not found in activated_packages
12:51:46,656 urbanGUI INFO
ID: app/1446740 | Status: OK | Items: app/1446740

12:53:16,664 urbanGUI DEBUG
Package not found in activated_packages
12:53:16,879 urbanGUI INFO
ID: app/1445970 | Status: OK | Items: app/1445970

12:54:46,889 urbanGUI DEBUG
Package not found in activated_packages
12:54:47,119 urbanGUI INFO
ID: app/1446020 | Status: OK | Items: app/1446020

12:56:17,133 urbanGUI DEBUG
Package not found in activated_packages
12:56:17,315 urbanGUI INFO
ID: app/1446120 | Status: OK

12:57:47,524 urbanGUI INFO
ID: app/1446120 | Status: OK

12:59:17,719 urbanGUI INFO
ID: app/1446120 | Status: OK

13:00:47,920 urbanGUI INFO
ID: app/1446120 | Status: OK

13:02:18,130 urbanGUI INFO
ID: app/1446120 | Status: OK

13:03:48,333 urbanGUI INFO
ID: app/1446120 | Status: OK

13:05:18,537 urbanGUI INFO
ID: app/1446120 | Status: OK

13:06:48,734 urbanGUI INFO
ID: app/1446120 | Status: OK

13:08:18,936 urbanGUI INFO
ID: app/1446120 | Status: OK

13:09:49,145 urbanGUI INFO
ID: app/1446120 | Status: OK

13:12:49,161 urbanGUI DEBUG
Package not found in activated_packages
13:12:49,392 urbanGUI INFO
ID: app/1446230 | Status: OK | Items: app/1446230

13:14:19,402 urbanGUI DEBUG
Package not found in activated_packages
13:14:19,598 urbanGUI INFO
ID: app/1445330 | Status: OK | Items: app/1445330

13:15:49,613 urbanGUI DEBUG
Package not found in activated_packages
13:15:49,800 urbanGUI INFO
ID: app/1445510 | Status: OK | Items: app/1445510

13:17:19,817 urbanGUI DEBUG
Package not found in activated_packages
13:17:20,18 urbanGUI INFO
ID: app/1445610 | Status: OK | Items: app/1445610

13:18:50,25 urbanGUI DEBUG
Package not found in activated_packages
13:18:50,253 urbanGUI INFO
ID: app/1445640 | Status: OK | Items: app/1445640

13:20:20,258 urbanGUI DEBUG
Package not found in activated_packages
13:20:20,457 urbanGUI INFO
ID: app/1445700 | Status: OK | Items: app/1445700

13:21:50,467 urbanGUI DEBUG
Package not found in activated_packages
13:21:50,665 urbanGUI INFO
ID: app/1445710 | Status: OK | Items: app/1445710

13:23:20,679 urbanGUI DEBUG
Package not found in activated_packages
13:23:20,868 urbanGUI INFO
ID: app/1444970 | Status: OK | Items: app/1444970

13:24:50,871 urbanGUI DEBUG
Package not found in activated_packages
13:24:51,61 urbanGUI INFO
ID: app/1445040 | Status: OK | Items: app/1445040

13:26:21,68 urbanGUI DEBUG
Package not found in activated_packages
13:26:21,420 urbanGUI INFO
ID: app/1445170 | Status: OK

13:27:51,634 urbanGUI INFO
ID: app/1445170 | Status: OK

13:29:21,824 urbanGUI INFO
ID: app/1445170 | Status: OK

13:30:52,29 urbanGUI INFO
ID: app/1445170 | Status: OK

13:32:22,288 urbanGUI INFO
ID: app/1445170 | Status: OK

`

acces denied for docker image

i try to pull ghcr.io/luois45/claim-free-steam-packages:latest but it just says

pull access denied for it, repository does not exist or may require docker login: denied: requested access to the resouce id denied

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.