scrapy-random-useragent
scrapy-random-useragent copied to clipboard
How to list the user agents in the file
Hi, Can you show use how we add the user agents to the file? Is it gonna be comma-delimited or with '\n' Thanks
Probably so, you can take a look at this line https://github.com/cnu/scrapy-random-useragent/blob/0f49a66ec800733ea001e3140ce6a8f86e10ed9c/random_useragent.py#L37
the user agent file needs to be separated with '\n'. The line of code @tienduccao posted will read every line and use the .strip() method to remove all kind of whitespaces.
Que tal seria de gran ayuda q un ejemplo de como construir tu lista de agentes es primera ves q lo hago asi q no tengo idea de como empezar para realizarla.