Traceback (most recent call last):
File "C:\Users\piter\PycharmProjects\MashaHelp\main.py", line 92, in <module>
writingFile(allElements)
File "C:\Users\piter\PycharmProjects\MashaHelp\main.py", line 62, in writingFile
writeRow(sheet, "I", allElements.name)
File "C:\Users\piter\PycharmProjects\MashaHelp\main.py", line 85, in writeRow
sheet[letter + str(i + end)].value = arr[i]
File "C:\Users\piter\PycharmProjects\Clicker\venv\lib\site-packages\openpyxl\worksheet\worksheet.py", line 307, in __getitem__
return self._get_cell(min_row, min_col)
File "C:\Users\piter\PycharmProjects\Clicker\venv\lib\site-packages\openpyxl\worksheet\worksheet.py", line 253, in _get_cell
raise ValueError("Row numbers must be between 1 and 1048576")
ValueError: Row numbers must be between 1 and 1048576
def getRow(letter):
i = 15
u = 0
arr = []
while i < 1000:
i = i + 1
u = u + 1
if (sheet[letter + str(i)].value != None):
arr.append(sheet['I' + str(i)].value)
else:
break
return arr
el_1 = element(name = getRow("I"),
leg = getRow("J"),
itog = getRow("K"),
material = getRow("L"),
primechanie = getRow("M"),
vrezki = getRow("N"),
objLegVrez = getRow("O"),
gib = getRow("P"),
count = getRow("Q"))
Traceback (most recent call last):
File "C:\Users\piter\PycharmProjects\MashaHelp\main.py", line 38, in
el_1 = element(name = getRow("I"),
TypeError: element() takes no arguments
class element:
# region
name = [];
leg = [];
itog = [];
material = [];
primechanie = [];
vrezki = [];
objLegVrez = [];
gib = [];
count = [];
#name,leg,itog,material,rimechanie,vrezki,objLegVrez,gib,count
# endregion
var f = 0;
var m;
gmailValues.map(parseFloat);
for (var i = 0; i < gmailValues.length; i++)
{
f += m;
}
const butts = Array.prototype.filter.call(
document.querySelectorAll('div[id^="start-ads-"] + div[id^="ads_id_"]'),
div => /Таймер:\s*10\s*секунд\s*$/.test(div.textContent)
).map(e => e.previousElementSibling.querySelector('span[onclick]'));
и butts[0] = ничему await page.click(butts[0]);
const puppeteer = require('puppeteer');
var page = [];
async function getPic()
{
var r = 0;
const browser = await puppeteer.launch({headless: false});
page[r] = await browser.newPage();
await page[r].waitFor(1000);
await page[r].goto('https://site/');
await page[r].waitFor(1000);
await page[r].type("#login-form > div:nth-child(2) > input", "f@gmail.com");
await page[r].waitFor(1000);
await page[r].type("#login-form > div:nth-child(3) > input", "pass");
await page[r].waitFor(1000);
await page[r].click("#button-login");
await page[r].waitFor(2000);
await page[r].goto('https://aviso.bz/work-youtube');
await page[r].waitFor(1000);
const butts = Array.prototype.filter.call(
document.querySelectorAll('div[id^="start-ads-"] + div[id^="ads_id_"]'),
div => /Таймер:\s*10\s*секунд\s*$/.test(div.textContent)
).map(e => e.previousElementSibling.querySelector('span[onclick]'));
await browser.close();
}
getPic();