clickthisnick / craiglister Goto Github PK
View Code? Open in Web Editor NEWCraglister - Automatically post to craigslist every 72 hours with selenium
Craglister - Automatically post to craigslist every 72 hours with selenium
close
Microsoft Windows [Version 10.0.14393]
C:\Users\Richard\Documents\Testsite\CraigLister\gmail>python craiglister.py
listingFolder C:\Users\Richard\Documents\Testsite\CraigLister\gmail\listings\xxxxxxxxx
listingImages ['2017-01-03-PHOTO-00004803.jpg', '2017-01-03-PHOTO-00004804.jpg', '2017-01-03-PHOTO-00004805.jpg', '2017-01-03-PHOTO-00004806.jpg', '2017-01-03-PHOTO-00004808.jpg', '2017-01-03-PHOTO-00004809.jpg', '2017-01-03-PHOTO-00004810.jpg', '2017-01-03-PHOTO-00004811.jpg', '2017-01-03-PHOTO-00004812.jpg', '2017-01-03-PHOTO-00004813.jpg', '2017-01-03-PHOTO-00004814.jpg', '2017-01-03-PHOTO-00004815.jpg', '2017-01-03-PHOTO-00004816.jpg', '2017-01-03-PHOTO-00004817.jpg', '2017-01-03-PHOTO-00004818.jpg', '2017-01-03-PHOTO-00004819.jpg', '2017-01-03-PHOTO-00004820.jpg', '2017-01-03-PHOTO-00004821.jpg', '2017-01-03-PHOTO-00004822.jpg', 'Thumbs.db']
Traceback (most recent call last):
File "craiglister.py", line 241, in <module>
postListing(listing)
File "craiglister.py", line 120, in postListing
clickListingType(listing)
File "craiglister.py", line 65, in clickListingType
listing.driver.find_element_by_xpath("//*[@id='pagecontainer']/section/form/blockquote//label[contains(.,'" + listing.type + "')]/input").click()
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 293, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 752, in find_element
'value': value})['value']
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute
self.error_handler.check_response(response)
**File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id='pagecontainer']/section/form/blockquote//label[contains(.,'service offered')]/input"}
(Session info: chrome=56.0.2924.87)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 10.0.14393 x86_64)**
looks like craigslist may have shaked things up or selenium isnt able to identify elements properly. My laptop sucks and wifi is slow so ill keep checking if its just me.
Would really be great if we added a feature where nick didn't suck and got back to work.
Traceback (most recent call last):
File "cl.py", line 178, in <module>
moveFolder(listingFolder,listedFolderDirectory)
File "cl.py", line 110, in moveFolder
makeFolder(today_dir)
NameError: global name 'makeFolder' is not defined
root@debian:/home/python/Desktop# python craiglister.py
Traceback (most recent call last):
File "craiglister.py", line 219, in <module>
if (hasItBeenXDaysSinceFolderListed(dayListedFolder,3) == False):
File "craiglister.py", line 188, in hasItBeenXDaysSinceFolderListed
folderDate = datetime.date(int(dateSplit[2]) + 2000, int(dateSplit[0]), int(dateSplit[1]))
IndexError: list index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.